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


Introduced in

Version:2.07

Description

Description:Applies the player control input to another unit or vehicle.

The controlled object movements are not necessarily an exact mirror of the player - it only interprets the inputs, so if the controlled object runs into obstacles, the paths of the player and the controlled object could diverge. Vehicles do not need to have a driver to be remotely controlled, but if they do have one, the controlled object should be the vehicle, and not the driver. It is possible to control multiple objects simultaneously.

Syntax

Syntax:object setRemoteControl controlled
Parameters:
  • object: Object - Unit or vehicle.
  • controlled: Boolean - If true, then the object is remotely controlled.
Return Value:Nothing

Examples

Examples:
tank1 setRemoteControl true;

Additional Information

See also: getRemoteControl
Multiplayer:
Problems:

Notes