GetPedControlState

From Multi Theft Auto: Wiki
Revision as of 14:02, 19 May 2008 by Arc (talk | contribs)
Jump to navigation Jump to 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