Player::taskPlayAnimAdvanced: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
No edit summary
 
Line 1: Line 1:
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 -&gt; 1.0, lets you start an animation from given point. The rest as in Player::TASK_PLAY_ANIM. <br><br>Rotation information : rotX and rotY don't seem to have any effect, only rotZ works.<br><br>Animations List : www.ls-multiplayer.com/dev/index.php?section=3
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 -&gt; 1.0, lets you start an animation from given point. The rest as in Player::TASK_PLAY_ANIM. <br><br>Rotation information : rotX and rotY don't seem to have any effect, only rotZ works.
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">player.taskPlayAnimAdvanced(animDict, animName, posX, posY, posZ, rotX, rotY, rotZ, speed, speedMultiplier, duration, flag, animTime, p14, p15);</syntaxhighlight>
<syntaxhighlight lang="javascript">player.taskPlayAnimAdvanced(animDict, animName, posX, posY, posZ, rotX, rotY, rotZ, speed, speedMultiplier, duration, flag, animTime, p14, p15);</syntaxhighlight>

Latest revision as of 20:56, 13 September 2017

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