Player::taskPlayAnim

From RAGE Multiplayer Wiki
Revision as of 08:35, 3 October 2017 by Unknown (talk | contribs)

Speed:

  • Normal speed is 8.0f

Speed Multiplier: Multiply the playback speed

Duration:

  • -1 (Default)
  • 0 (No Animation at all)
  • Small value (Slows the animation)
  • Other values (Freezes the player till ms was passed) (No effect if flag is set to be controllable.)

Animation Flags :

  • NORMAL = 0,
  • REPEAT = 1,
  • STOP_LAST_FRAME = 2,
  • UPPERBODY = 16,
  • ENABLE_PLAYER_CONTROL = 32,
  • CANCELABLE = 120,
  • Odd number : loop infinitely
  • Even number : Freeze at last frame
  • Multiple of 4: Freeze at last frame but controllable
  • 01 to 15 : Full body
  • 10 to 31 : Upper body
  • 32 to 47 : Full body > Controllable
  • 48 to 63 : Upper body > Controllable
  • 001 to 255 : Normal
  • 256 to 511 : Garbled


PlaybackRate:

  • values are between 0.0 and 1.0

Syntax

player.taskPlayAnim(animDictionary, animationName, speed, speedMultiplier, duration, flag, playbackRate, lockX, lockY, lockZ);

Required Arguments

  • animDictionary: String
  • animationName: String
  • speed: float
  • speedMultiplier: float
  • duration: int
  • flag: int
  • playbackRate: float
  • lockX: Boolean
  • lockY: Boolean
  • lockZ: Boolean

Return value

  • Undefined

Example

// todo

See also