SetPedAnalogControlState

From Multi Theft Auto: Wiki
Revision as of 00:56, 25 June 2012 by Ccw (talk | contribs)
Jump to navigation Jump to search

Sets an analog state of a specified player's control, as if they pressed or released it.

Syntax

bool setPedAnalogControlState ( ped thePed, string control [, float state ] ) 

Required Arguments

  • thePed: The ped you wish to set the control state of.
  • control: The control that you want to set the state of. See control names for a list of possible controls.

Optional Arguments

  • state: A float value representing a full analog push ( 1 ) or full release ( 0 ). If no value is provided, the analog control is removed.

Returns

Returns 'true' if the control state was successfully set, 'false' otherwise.

Example

--todo

Requirements

This template will be deleted.

See Also