GetPedAnimationData: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 7: Line 7:
==Syntax==
==Syntax==
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
table getPedAnimationData ( ped thePed )
string getPedAnimationData ( ped thePed )
</syntaxhighlight>
</syntaxhighlight>


Line 14: Line 14:


===Returns===
===Returns===
Returns a [[table]] containing information about [[animations]]. These keys are present in the table:
Returns 2 <!-- Returns a string [[table]] -->[[string]]s containing information about [[animations]]. These keys are present below <!-- in the table --> :
*'''name:''' string - name of the animation
*'''name:''' string - name of the animation
*'''block_name:''' string - name of animation block
*'''block_name:''' string - name of animation block
*'''loop:''' boolean - is animation looping?
<!-- For some reason it doesn't output these *'''loop:''' boolean - is animation looping?
*'''update_position:''' boolean - updating position
*'''update_position:''' boolean - updating position
*'''interruptible:''' boolean - is animation interruptible?
*'''interruptible:''' boolean - is animation interruptible?
Line 24: Line 24:
*'''finished:''' boolean - has animation finished playing?
*'''finished:''' boolean - has animation finished playing?
*'''speed:''' float - speed
*'''speed:''' float - speed
*'''blend_speed:''' float - blending speed
*'''blend_speed:''' float - blending speed -->


==Requirements==
==Requirements==

Revision as of 19:50, 20 September 2012

Dialog-information.png This article needs checking.

Reason(s): 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

string getPedAnimationData ( ped thePed )

Required Arguments

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

Returns

Returns 2 strings containing information about animations. These keys are present below  :

  • name: string - name of the animation
  • block_name: string - name of animation block

Requirements

This template will be deleted.

See Also