Player::taskPlayAnimAdvanced

From RAGE Multiplayer Wiki
Jump to navigation Jump to search

It's similar to the one above, except the first 6 floats let you specify the initial position and rotation of the task. (Ped gets teleported to the position). animTime is a float from 0.0 -> 1.0, lets you start an animation from given point. The rest as in Player::TASK_PLAY_ANIM.

Rotation information : rotX and rotY don't seem to have any effect, only rotZ works.

Syntax

player.taskPlayAnimAdvanced(animDict, animName, posX, posY, posZ, rotX, rotY, rotZ, speed, speedMultiplier, duration, flag, animTime, p14, p15);

Required Arguments

  • animDict: String
  • animName: String
  • posX: float
  • posY: float
  • posZ: float
  • rotX: float
  • rotY: float
  • rotZ: float
  • speed: float
  • speedMultiplier: float
  • duration: int
  • flag: unknown (to be checked)
  • animTime: float
  • p14: unknown (to be checked)
  • p15: unknown (to be checked)

Return value

  • Undefined

Example

// todo

See also