SetPedAnimationProgress: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Created page with "==Syntax== <syntaxhighlight lang="lua"> bool setPedAnimationProgress ( ped thePed, string anim, float progress) </syntaxhighlight> ===Required Arguments=== *'''thePed:''' the player or ped you want to chan...")
 
No edit summary
Line 1: Line 1:
__NOTOC__
{{Server client function}}
Sets the current animation progress of a player or ped.
==Syntax==
==Syntax==
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">

Revision as of 12:24, 15 August 2011

Sets the current animation progress of a player or ped.

Syntax

bool setPedAnimationProgress ( ped thePed, string anim, float progress)

Required Arguments

  • thePed: the player or ped you want to change animation progress.
  • anim: the animation name, currently applied to ped.
  • progress: current animation progress you want to apply, value from 0.0 to 1.0.

Returns

Returns true if succesful, false otherwise.