SetPedAnimation: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(New page: __NOTOC__ {{Client function}} Sets the current animation of a ped. ==Syntax== <syntaxhighlight lang="lua"> bool setPedAnimation ( ped thePed, int animGroup, int animID ) </syntaxhighlight> ===Required Arguments===...)
 
mNo edit summary
Line 2: Line 2:
{{Client function}}
{{Client function}}


Sets the current animation of a ped.
Sets the current animation of a player or ped.


==Syntax==
==Syntax==
Line 10: Line 10:


===Required Arguments===
===Required Arguments===
*'''thePed:''' the ped you want to apply an animation to.
*'''thePed:''' the player or ped you want to apply an animation to.
*'''animGroup:''' the animation group ID.
*'''animGroup:''' the animation group ID.
*'''animID:''' the ID of the animation within the group.
*'''animID:''' the ID of the animation within the group.

Revision as of 22:22, 14 April 2008

Sets the current animation of a player or ped.

Syntax

bool setPedAnimation ( ped thePed, int animGroup, int animID )

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.

Returns

Returns true if succesful, false otherwise.

Example

See Also