remoteControlled: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 8: Line 8:


|descr= 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.
|descr= 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.
{{Feature|important|The argument must be local}}


|s1= [[remoteControlled]] unitOrPlayer
|s1= [[remoteControlled]] unitOrPlayer

Revision as of 22:54, 31 July 2023

Hover & click on the images for description
Only available in Development branch(es) until its release with Arma 3 patch v2.14.

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.
The argument must be local
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 uniot controlled by the player (see description) or objNull

Examples

Example 1:
_player = remoteControlled _bob;
Example 2:
_bob = remoteControlled _player;

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