SetPedAnimationSpeed: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
m (tweak) |
||
Line 16: | Line 16: | ||
===Optional Arguments=== | ===Optional Arguments=== | ||
*'''anim:''' the animation name it will affect. | *'''anim:''' the animation name it will affect. | ||
*'''speed:''' a [[float]] containing the speed between 0.0–1.0 you want to apply to the animation. | *'''speed:''' a [[float]] containing the speed between 0.0–1.0 you want to apply to the animation. ''This limitation may be adjusted in the future, so do not provide speeds outside this boundary.'' | ||
===Returns=== | ===Returns=== |
Revision as of 04:13, 7 September 2018
Sets the current animation speed of a player or ped.
Syntax
bool setPedAnimationSpeed ( ped thePed [, string anim = "", float speed = 1.0 ] )
OOP Syntax Help! I don't understand this!
- Method: ped:setAnimationProgress(...)
Required Arguments
Optional Arguments
- anim: the animation name it will affect.
- speed: a float containing the speed between 0.0–1.0 you want to apply to the animation. This limitation may be adjusted in the future, so do not provide speeds outside this boundary.
Returns
Returns true if successful, false otherwise.
Example
Script Example Missing Function SetPedAnimationSpeed needs a script example, help out by writing one. | |
Before submitting check out Editing Guidelines Script Examples. |
-- TODO
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