remoteControlled: Difference between revisions
Jump to navigation
Jump to search
Killzone Kid (talk | contribs) No edit summary |
Killzone Kid (talk | contribs) No edit summary |
||
Line 7: | Line 7: | ||
|gr1= Remote Control | |gr1= Remote Control | ||
|descr= Returns the | |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. | ||
|s1= [[remoteControlled]] | |s1= [[remoteControlled]] unitOrPlayer | ||
|p1= | |p1= unitOrPlayer: [[Object]] - unit under remote control or the player controlling a unit | ||
|r1= [[Object]] - the person controlling the unit or [[objNull]] | |r1= [[Object]] - the person controlling the unit or the uniot controlled by the player (see description) or [[objNull]] | ||
|x1= <sqf> | |x1= <sqf>_player = remoteControlled _bob;</sqf> | ||
|x2= <sqf>_bob = remoteControlled _player;</sqf> | |||
|seealso= [[remoteControl]] | |seealso= [[remoteControl]] | ||
}} | }} |
Revision as of 20:17, 31 July 2023
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 uniot controlled by the player (see description) or objNull
Examples
- Example 1:
- Example 2:
Additional Information
- See also:
- remoteControl
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