GetPedAnimation: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
m (Needs example)
m (Note: Use getPedTask to monitor what movements the player is currently doing.)
Line 3: Line 3:


Gets the animation of a player or ped that was set using [[setPedAnimation]].
Gets the animation of a player or ped that was set using [[setPedAnimation]].
Note: Use [[getPedTask]] to monitor what movements the player is currently doing.


==Syntax==
==Syntax==

Revision as of 20:13, 27 February 2011

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

Note: Use getPedTask to monitor what movements the player is currently doing.

Syntax

string string getPedAnimation ( ped thePed )

Required Arguments

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

Returns

Returns two strings: the first is the name of the block, the second is the name of the animation. Returns false if there was an error or if the ped is not doing an animation.

Example

See Also