-
Notifications
You must be signed in to change notification settings - Fork 7
Movement
Leonid Pospelov edited this page Jul 27, 2019
·
2 revisions
let mov = new Movement();
-
pos
- An array representing XYZ coordinates. -
angleZ
(optional) - An angle in degrees.
let mov = new Movement([3129, -2999, -240], 75.0);
let mov = new Movement({
pos: [0.0, 0.0, 0.0],
angleZ: 180.0,
angleHeadDirection: 0.0,
angleVertical: 0.0,
healthPercentage: 1.0, // From 0.0 to 1.0, will be visible in the enemy's health bar, doesn't affect real HP
flags: ['WeapDrawn'], // Valid flags are: 'Walking', 'Running', 'Sprinting', 'WeapDrawn', 'Blocking', 'Sneaking', 'Dead'
});