GetPedAnimationLength: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Added new function (TODO: Example required!))
 
mNo edit summary
 
(One intermediate revision by the same user not shown)
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===
Returns animation length on success, -1 otherwise.
Returns animation length on success, -1 otherwise.
===Examples===
{{Needs Example}}


==See Also==
==See Also==
{{Client_ped_functions}}
{{Client_ped_functions}}

Latest revision as of 13:15, 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.

Examples

Accessories-text-editor.png Script Example Missing Function GetPedAnimationLength needs a script example, help out by writing one.

Before submitting check out Editing Guidelines Script Examples.


See Also