GetPedAnimationData

From Multi Theft Auto: Wiki
Revision as of 17:49, 10 June 2009 by Jax (talk | contribs) (New page: __NOTOC__ {{Client function}} Gets the animation data of a player or ped that was set using setPedAnimation or blendPedAnimation. ==Syntax== <syntaxhighlight lang="lua"> ... getPedAnimationData (...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Gets the animation data of a player or ped that was set using setPedAnimation or blendPedAnimation.

Syntax

... getPedAnimationData ( ped thePed, string dataType )

Required Arguments

  • thePed: the player or ped you want to get the animation data of.
  • dataType: A string representing the type of data you want to retrieve:

Data-types

  • name: string - name of animation.
  • blockName: string - name of animation block.
  • loop: boolean - looping.
  • updatePosition: boolean - updating position.
  • interruptable: boolean - interruptable.
  • time: float - duration.
  • startTime: float - starting point.
  • finished: boolean - finished playing.
  • speed: float - speed.
  • blendSpeed: float - blending speed.

Returns

Returns various arguments depending on the 'dataType' specified.

Example

See Also