Skip to content

Movement

Leonid Pospelov edited this page Jul 27, 2019 · 2 revisions

Constructor: Movement()

let mov = new Movement();

Constructor: Movement(pos[, angleZ])

  • pos - An array representing XYZ coordinates.
  • angleZ (optional) - An angle in degrees.
let mov = new Movement([3129, -2999, -240], 75.0);

Constructor: Movement(options)

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'
});
Clone this wiki locally