remoteControlled

From Bohemia Interactive Community
Revision as of 14:24, 16 November 2023 by Lou Montana (talk | contribs) (Fix phrasing)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Hover & click on the images for description

Description

Description:
Returns the player controlling the given unit if the argument is the unit, or the unit controlled by the player if the argument is the player.
Groups:
Remote Control

Syntax

Syntax:
remoteControlled unitOrPlayer
Parameters:
unitOrPlayer: Object - unit under remote control or the player controlling a unit
Return Value:
Object - the person controlling the unit or the unit controlled by the player; objNull if not applicable

Examples

Example 1:
private _controllingPlayer = remoteControlled _dronePilot;
Example 2:
private _dronePilot = remoteControlled _controllingPlayer;

Additional Information

See also:
remoteControl isRemoteControlling

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note