GetPedAnimationLength: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Added new function (TODO: Example required!))
 
m (Typo)
Line 12: Line 12:


===Required Arguments===
===Required Arguments===
*'''thePed:''' the [[player]] or [[ped]] you want to get the [[animations|animation]] progress of.
*'''thePed:''' the [[player]] or [[ped]] you want to get the [[animations|animation]] length of.


===Returns===
===Returns===

Revision as of 06:07, 15 October 2024

ADDED/UPDATED IN VERSION 1.6.0 r22780:

This function returns the length of a current running ped animation.

Syntax

float getPedAnimationLength ( ped thePed )

Required Arguments

Returns

Returns animation length on success, -1 otherwise.

See Also