BlendPedAnimation

From Multi Theft Auto: Wiki
Revision as of 13:51, 10 June 2009 by Jax (talk | contribs)
Jump to navigation Jump to search

Sets the current animation of a player or ped. Not specifying the type of animation will automatically cancel the current one.

Click to expand [+]
Client

Returns

Returns true if succesful, false otherwise.

Example

Click to collapse [-]
Client

This example creates a ped, rotates them, and makes them walk:

function makePed()
   ped1 = createPed(56, 1, 1, 4)
   setPedRotation(ped1, 315)
   blendPedAnimation(ped1, "ped", "WOMAN_walknorm")
end
addEventHandler("onResourceStart", getRootElement(), makePed)

See Also