Page tree
Skip to end of metadata
Go to start of metadata



Introduced in

Version:1.31

Description

Description:

Sets an object to be externally controlled. While being externally controlled, the object loses the ability to be controlled by the player or the AI.

Note: Be aware that not all actions can be externally controlled. See the VBS Key Actions for compatibility notes. Also, note that this command is not related to external control from LVC - HLA.

Syntax

Syntax:unit setExternalControl control
Parameters:
  • unit: Object - Unit that is to be controlled via setAction.
  • control: Boolean - Turns external control on and off.
Return Value:Nothing

Alternative Syntax

Syntax:[vehicle, turret] setExternalControl control (V2.12+)
Parameters:
  • vehicle: Object - Vehicle with turrets that is to be controlled, using setAction.
  • turret: Array - Path to turret.
  • control: Boolean - Turns external control on and off.
Return Value:Nothing

Examples

Examples:
car0 setExternalControl true

Additional Information

See also: setAction, getExternalControl
Multiplayer:
Problems:

Notes