SetPedControlState

From Multi Theft Auto: Wiki
Revision as of 14:02, 19 May 2008 by Arc (talk | contribs) (New page: __NOTOC__ {{Client function}} Makes a ped press or release a certain control. ==Syntax== <syntaxhighlight lang="lua"> bool setPedControlState ( ped thePed, string control, bool state ) </syntaxhighlight> ===Require...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Makes a ped press or release a certain control.

Syntax

bool setPedControlState ( ped thePed, string control, bool state )

Required Arguments

  • thePed: the ped you want to press or release a control.
  • control: the name of the control of which to change the state. See control names for a list of valid names.
  • state: the new control state. true means pressed, false is released.

Returns

Returns true if successful, false if otherwise.

See Also