GetPedControlState: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(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...)
 
mNo edit summary
Line 5: Line 5:
==Syntax==
==Syntax==
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
bool getControlState ( ped thePed, string control )
bool getPedControlState ( ped thePed, string control )
</syntaxhighlight>
</syntaxhighlight>



Revision as of 14:02, 19 May 2008

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