SetPedAnimation

From Multi Theft Auto: Wiki
Revision as of 22:56, 10 June 2008 by Erorr404 (talk | contribs)
Jump to navigation Jump to search

Sets the current animation of a player or ped.

Syntax

bool setPedAnimation ( ped thePed, int animGroup, int animID, [ bool loop ] )

Required Arguments

  • thePed: the player or ped you want to apply an animation to.
  • animGroup: the animation group ID.
  • animID: the ID of the animation within the group.
  • loop: indicates whether or not the animation will loop.

Returns

Returns true if succesful, false otherwise.

Example

See Also