GetPedControlState

From Multi Theft Auto: Wiki

Jump to: navigation, search

Checks whether a ped has a certain control pressed.

Syntax

bool getPedControlState ( ped thePed, string control )

Required Arguments

  • thePed: the ped you want to check.
  • control: the control to get the status of. See control names for a list of valid names.

Returns

Returns true if the ped is pressing the specified control, false if not or an invalid argument was passed.

See Also

  • canPedBeKnockedOffBike
  • createPed
  • doesPedHaveJetPack
  • getPedAmmoInClip
  • getPedAnimation
  • getPedAnimationData
  • getPedArmor
  • getPedBonePosition
  • getPedClothes
  • getPedContactElement
  • getPedControlState
  • getPedMoveState
  • getPedOccupiedVehicle
  • getPedRotation
  • getPedSimplestTask
  • getPedSkin
  • getPedStat
  • getPedTarget
  • getPedTargetCollision
  • getPedTargetEnd
  • getPedTargetStart
  • getPedTask
  • getPedTotalAmmo
  • getPedVoice
  • getPedWeapon
  • getPedWeaponMuzzlePosition
  • getPedWeaponSlot
  • isPedChoking
  • isPedDoingGangDriveby
  • isPedDoingTask
  • isPedDucked
  • isPedFrozen
  • isPedHeadless
  • isPedInVehicle
  • isPedInWater
  • isPedOnFire
  • isPedOnGround
  • setPedAimTarget
  • setPedAnimation
  • setPedCameraRotation
  • setPedCanBeKnockedOffBike
  • setPedControlState
  • setPedDoingGangDriveby
  • setPedFrozen
  • setPedHeadless
  • setPedLookAt
  • setPedOnFire
  • setPedRotation
  • setPedSkin
  • setPedVoice
  • setPedWeaponSlot
  • setPedFootBloodEnabled
Retrieved from "http://wiki.multitheftauto.com/wiki/GetPedControlState"
Category: Client functions
Views
  • Page
  • Discussion
  • View source
  • History
Personal tools
  • Log in / create account with OpenID
home | irc chat | community | forum | wiki | bugs | heroes | hosting
Navigation
  • Home
  • How you can help
  • Recent changes
  • Random page
reference
  • Client Functions
  • Client Events
  • Server Functions
  • Server Events
  • MTA Classes
  • MTA Elements
  • Element Tree
 
Toolbox
  • What links here
  • Related changes
  • Special pages
  • Printable version
  • Permanent link
Powered by MediaWiki
GNU Free Documentation License 1.2
  • This page was last modified on 19 May 2008, at 14:02.
  • This page has been accessed 2,847 times.
  • Content is available under GNU Free Documentation License 1.2.
  • Privacy policy
  • About Multi Theft Auto: Wiki
  • Disclaimers