- Documentation
- Server functions
- setPedWalkingStyle
Function
setPedWalkingStyle
Stores a ped's walking style as a San Andreas walk animation number (e.g. 54 default, 118 man, 121 gang member, 129 woman). In Trilogy Hub this is currently state for scripts returned by getPedWalkingStyle; the game does not change the way the ped walks based on it yet. Values outside 0-138 are rejected.
Syntax
bool setPedWalkingStyle(ped ped, int value)Arguments
pedped- A player or an NPC.
valueint- Walking style number 0-138.
Returns
true on success.
Example
setPedWalkingStyle(player, 121)
Notes
State for scripts.
See also
getPedWalkingStyleReturns the walking style stored withsetPedWalkingStyle(0 by default).setPedAnimationPlays an animation on a ped. The animation comes from a game animation block (e.g.ped,dancing,smoking) or from an IFP file loaded withengineLoadIFP. Calling it without a block stops the animation. On the server the animation reaches every player. On the client it only runs in this game: for the local player others see it through pose streaming; for a remote player the function returnsfalsebecause their appearance comes from their own game.