SetPedAnalogControlState: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 4: | Line 4: | ||
==Syntax== | ==Syntax== | ||
<syntaxhighlight lang="lua">bool setPedAnalogControlState ( ped thePed, string control | <syntaxhighlight lang="lua">bool setPedAnalogControlState ( ped thePed, string control, float state ) </syntaxhighlight> | ||
===Required Arguments=== | ===Required Arguments=== | ||
*'''thePed:''' The ped you wish to set the control state of. | *'''thePed:''' The ped you wish to set the control state of. | ||
*'''control:''' The control that you want to set the state of. See [[control names]] for a list of possible controls. | *'''control:''' The control that you want to set the state of. See [[control names]] for a list of possible controls. | ||
*'''state:''' A float value representing a full analog push ( 1 ) or full release ( 0 ). If no value is provided, the analog control is removed. | *'''state:''' A float value representing a full analog push ( 1 ) or full release ( 0 ). If no value is provided, the analog control is removed. | ||
Revision as of 23:33, 15 April 2013
Sets an analog state of a specified player's control, as if they pressed or released it.
Syntax
bool setPedAnalogControlState ( ped thePed, string control, float state )
Required Arguments
- thePed: The ped you wish to set the control state of.
- control: The control that you want to set the state of. See control names for a list of possible controls.
- state: A float value representing a full analog push ( 1 ) or full release ( 0 ). If no value is provided, the analog control is removed.
Returns
Returns 'true' if the control state was successfully set, 'false' otherwise.
Example
--todo
Requirements
This template will be deleted.
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