GetPedAnimationData: Difference between revisions
Jump to navigation
Jump to search
m (Changed needs checking to a note box, info may not be necessary anymore: feel free to remove it.) |
|||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
{{Client function}} | {{Client function}} | ||
{{ | {{Note box|This function doesn't exist in 1.0.1 --[[User:50p|50p]] 22:06, 9 October 2009 (UTC)}} | ||
{{Needs Example}} | |||
This function is used to return the animation data of a [[player]] or [[ped]] that was set using [[setPedAnimation]]. | This function is used to return the animation data of a [[player]] or [[ped]] that was set using [[setPedAnimation]]. | ||
Line 27: | Line 28: | ||
==See Also== | ==See Also== | ||
{{Client ped functions}} | {{Client ped functions}} | ||
Revision as of 10:51, 16 November 2011
This template is no longer in use as it results in poor readability.
Script Example Missing Function GetPedAnimationData needs a script example, help out by writing one. | |
Before submitting check out Editing Guidelines Script Examples. |
This function is used to return the animation data of a player or ped that was set using setPedAnimation.
Syntax
table getPedAnimationData ( ped thePed )
Required Arguments
- thePed: the player or ped you want to get the animation data of.
Returns
Returns a table containing information about animation. These keys are present in the table:
- name: string - name of the animation
- block_name: string - name of animation block
- loop: boolean - is animation looping?
- update_position: boolean - updating position
- interruptible: boolean - is animation interruptible?
- time: float - duration of the animation
- start_time: float - starting point
- finished: boolean - has animation finished playing?
- speed: float - speed
- blend_speed: float - blending speed
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