GetPedAnimation: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Corrected the article - it's a client-only function)
mNo edit summary
Line 13: Line 13:


===Returns===
===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.
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==
==Example==

Revision as of 12:47, 3 January 2009

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

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