GetPedAnimationData: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 2: Line 2:
{{Client function}}
{{Client function}}
{{Needs_Checking|This function doesn't exist in 1.0.1 --[[User:50p|50p]] 22:06, 9 October 2009 (UTC)
{{Needs_Checking|This function doesn't exist in 1.0.1 --[[User:50p|50p]] 22:06, 9 October 2009 (UTC)
It does not exist as of 1.3 --[[User:Ransom|Ransom]] 03:14, 1 September 2012 (UTC)}}
Still missing in 1.3, [[getPedTask]] monitors the player, but you can't get animation table --[[User:Ransom|Ransom]] 03:14, 1 September 2012 (UTC)}}
{{Needs Example}}
{{Needs Example}}
This function is used to return the animation data of a [[player]] or [[ped]] that was set using [[setPedAnimation]].
This function is used to return the animation data of a [[player]] or [[ped]] that was set using [[setPedAnimation]].

Revision as of 03:22, 1 September 2012

Dialog-information.png This article needs checking.

Reason(s): This function doesn't exist in 1.0.1 --50p 22:06, 9 October 2009 (UTC)

Still missing in 1.3, getPedTask monitors the player, but you can't get animation table --Ransom 03:14, 1 September 2012 (UTC)

Accessories-text-editor.png Script Example Missing Function GetPedAnimationData needs a script example, help out by writing one.

Before submitting check out Editing Guidelines Script Examples.

This function is used to return the animation data of a player or ped that was set using setPedAnimation.

Syntax

table getPedAnimationData ( ped thePed )

Required Arguments

  • thePed: the player or ped you want to get the animation data of.

Returns

Returns a table containing information about animation. These keys are present in the table:

  • name: string - name of the animation
  • block_name: string - name of animation block
  • loop: boolean - is animation looping?
  • update_position: boolean - updating position
  • interruptible: boolean - is animation interruptible?
  • time: float - duration of the animation
  • start_time: float - starting point
  • finished: boolean - has animation finished playing?
  • speed: float - speed
  • blend_speed: float - blending speed

See Also