GetPedAnimation: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
No edit summary |
||
Line 2: | Line 2: | ||
{{Client function}} | {{Client function}} | ||
Gets the animation of a player or ped that was set using [[setPedAnimation]]. | Gets the animation data of a player or ped that was set using [[setPedAnimation]] or [[blendPedAnimation]]. | ||
==Syntax== | ==Syntax== | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
... getPedAnimationData ( ped thePed, string dataType ) | |||
</syntaxhighlight> | </syntaxhighlight> | ||
===Required Arguments=== | ===Required Arguments=== | ||
*'''thePed:''' the player or ped you want to get the animation of. | *'''thePed:''' the player or ped you want to get the animation data of. | ||
*'''dataType:''' A string representing the type of data you want to retrieve: | |||
==Data-types== | |||
*'''name:''' string - name of animation. | |||
*'''blockName:''' string - name of animation block. | |||
*'''loop:''' boolean - looping. | |||
*'''updatePosition:''' boolean - updating position. | |||
*'''interruptable:''' boolean - interruptable. | |||
*'''time:''' float - duration. | |||
*'''startTime:''' float - starting point. | |||
*'''finished:''' boolean - finished playing. | |||
*'''speed:''' float - speed. | |||
*'''blendSpeed:''' float - blending speed. | |||
===Returns=== | ===Returns=== | ||
Returns | Returns various arguments depending on the 'dataType' specified. | ||
==Example== | ==Example== |
Revision as of 17:48, 10 June 2009
Gets the animation data of a player or ped that was set using setPedAnimation or blendPedAnimation.
Syntax
... getPedAnimationData ( ped thePed, string dataType )
Required Arguments
- thePed: the player or ped you want to get the animation data of.
- dataType: A string representing the type of data you want to retrieve:
Data-types
- name: string - name of animation.
- blockName: string - name of animation block.
- loop: boolean - looping.
- updatePosition: boolean - updating position.
- interruptable: boolean - interruptable.
- time: float - duration.
- startTime: float - starting point.
- finished: boolean - finished playing.
- speed: float - speed.
- blendSpeed: float - blending speed.
Returns
Returns various arguments depending on the 'dataType' specified.
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