setPedAnimationProgress | Multi Theft Auto: Wiki Skip to content

setPedAnimationProgress

Client-side
Server-side
Shared

This page is incomplete! Help wanted!

Please finish this page using the corresponding Old Wiki article.
Go to Contribution guidelines for more information.


Sets the current animation progress of a player or ped.

Syntax

setPedAnimationProgress ( )

Code Examples

server

This example creates a ped, apply animation to it, and "freeze" the animation at half of overall animation time.

function animRender( ped1 )
setPedAnimationProgress( ped1, "M_SMKSTND_LOOP", 0.5 )
setTimer( animRender, 50, 1, ped1 )
end
function makePed( )
local ped1 = createPed( 56, 1, 1, 4 )
setPedAnimation( ped1, "SMOKING", "M_SMKSTND_LOOP" )
setTimer ( animRender, 50, 1, ped1 )
end
addCommandHandler( "makemyped", makePed )

See Also