GetPedControlState

From Multi Theft Auto: Wiki
Revision as of 13:58, 19 May 2008 by Arc (talk | contribs) (New page: __NOTOC__ {{Client function}} Checks whether a ped has a certain control pressed. ==Syntax== <syntaxhighlight lang="lua"> bool getControlState ( ped thePed, string control ) </syntaxhighlight> ===Required Arguments...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Checks whether a ped has a certain control pressed.

Syntax

bool getControlState ( 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