SetPedAnimation: Difference between revisions
Jump to navigation
Jump to search
(New page: __NOTOC__ {{Client function}} Sets the current animation of a ped. ==Syntax== <syntaxhighlight lang="lua"> bool setPedAnimation ( ped thePed, int animGroup, int animID ) </syntaxhighlight> ===Required Arguments===...) |
mNo edit summary |
||
Line 2: | Line 2: | ||
{{Client function}} | {{Client function}} | ||
Sets the current animation of a ped. | Sets the current animation of a player or ped. | ||
==Syntax== | ==Syntax== | ||
Line 10: | Line 10: | ||
===Required Arguments=== | ===Required Arguments=== | ||
*'''thePed:''' the ped you want to apply an animation to. | *'''thePed:''' the player or ped you want to apply an animation to. | ||
*'''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. |
Revision as of 22:22, 14 April 2008
Sets the current animation of a player or ped.
Syntax
bool setPedAnimation ( ped thePed, int animGroup, int animID )
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.
Returns
Returns true if succesful, false otherwise.
Example
See Also
- canPedBeKnockedOffBike
- getPedAnalogControlState
- getPedAnimation
- getPedBonePosition
- getPedCameraRotation
- getPedControlState
- getPedMoveState
- getPedOxygenLevel
- getPedSimplestTask
- getPedTargetCollision
- getPedTargetEnd
- getPedTargetStart
- getPedTask
- getPedVoice
- getPedWeaponMuzzlePosition
- givePedWeapon
- isPedBleeding
- isPedDoingTask
- isPedReloadingWeapon
- isPedTargetingMarkerEnabled
- setAnalogControlState
- setPedAimTarget
- setPedAnalogControlState
- setPedBleeding
- setPedCameraRotation
- setPedCanBeKnockedOffBike
- setPedControlState
- setPedEnterVehicle
- setPedExitVehicle
- IsPedFootBloodEnabled
- setPedFootBloodEnabled
- setPedLookAt
- setPedOxygenLevel
- setPedTargetingMarkerEnabled
- setPedVoice
- Shared
- 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