SetPedAnimation: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
mNo edit summary |
||
Line 6: | Line 6: | ||
==Syntax== | ==Syntax== | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
bool setPedAnimation ( ped thePed, | bool setPedAnimation ( ped thePed, string block, strin anim, [ bool loop ] ) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
===Required Arguments=== | ===Required Arguments=== | ||
*'''thePed:''' the player or ped you want to apply an animation to. | *'''thePed:''' the player or ped you want to apply an animation to. | ||
*''' | *'''block:''' the animation block's name. | ||
*''' | *'''anim:''' the name of the animation within the block. | ||
*'''loop:''' indicates whether or not the animation will loop. | *'''loop:''' indicates whether or not the animation will loop. | ||
Revision as of 23:33, 10 June 2008
Sets the current animation of a player or ped.
Syntax
bool setPedAnimation ( ped thePed, string block, strin anim, [ bool loop ] )
Required Arguments
- thePed: the player or ped you want to apply an animation to.
- block: the animation block's name.
- anim: the name of the animation within the block.
- 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