SetPedAnimation: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
{{ | {{Server client function}} | ||
Sets the current animation of a player or ped. | Sets the current animation of a player or ped. | ||
Line 6: | Line 6: | ||
==Syntax== | ==Syntax== | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
bool setPedAnimation ( ped thePed, int animGroup, int animID ) | bool setPedAnimation ( ped thePed, int animGroup, int animID, [ bool loop ] ) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Line 13: | Line 13: | ||
*'''animGroup:''' the animation group ID. | *'''animGroup:''' the animation group ID. | ||
*'''animID:''' the ID of the animation within the group. | *'''animID:''' the ID of the animation within the group. | ||
*'''loop:''' indicates whether or not the animation will loop. | |||
===Returns=== | ===Returns=== | ||
Line 20: | Line 21: | ||
==See Also== | ==See Also== | ||
{{ | {{Ped_functions}} |
Revision as of 22:56, 10 June 2008
Sets the current animation of a player or ped.
Syntax
bool setPedAnimation ( ped thePed, int animGroup, int animID, [ bool loop ] )
Required Arguments
- thePed: the player or ped you want to apply an animation to.
- animGroup: the animation group ID.
- animID: the ID of the animation within the group.
- loop: indicates whether or not the animation will loop.
Returns
Returns true if succesful, false otherwise.
Example
See Also
- addPedClothes
- getPedClothes
- removePedClothes
- createPed
- getPedAmmoInClip
- getPedArmor
- getPedFightingStyle
- getPedOccupiedVehicle
- getPedOccupiedVehicleSeat
- getPedStat
- getPedTarget
- getPedTotalAmmo
- getPedWalkingStyle
- getPedWeapon
- getPedWeaponSlot
- getPedContactElement
- getValidPedModels
- isPedChoking
- isPedDead
- isPedDoingGangDriveby
- isPedDucked
- isPedHeadless
- isPedInVehicle
- isPedOnFire
- isPedOnGround
- isPedWearingJetpack
- killPed
- removePedFromVehicle
- setPedAnimation
- setPedAnimationProgress
- setPedAnimationSpeed
- setPedArmor
- setPedDoingGangDriveby
- setPedFightingStyle
- setPedHeadless
- setPedOnFire
- setPedStat
- setPedWalkingStyle
- setPedWeaponSlot
- warpPedIntoVehicle