Player::playAnimation: Difference between revisions

From RAGE Multiplayer Wiki
No edit summary
m (Added animation flags for reference)
Line 5: Line 5:
* '''speed: <span style="color:#008017>Number</span>'''
* '''speed: <span style="color:#008017>Number</span>'''
* '''flag: <span style="color:#008017>Number</span>'''
* '''flag: <span style="color:#008017>Number</span>'''
'''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


==Syntax==
==Syntax==

Revision as of 06:28, 25 October 2017

Starts animation

Parameters

  • dist: String
  • name: String
  • speed: Number
  • flag: Number

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

Syntax

Server-Side
player.playAnimation(dist, name, speed, flag)

Example

Server-Side
player.playAnimation('mp_arresting', 'idle', 1, 49)

See Also