remoteControlled: Difference between revisions
Jump to navigation
Jump to search
Killzone Kid (talk | contribs) No edit summary |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
Line 4: | Line 4: | ||
|version1= 2.14 | |version1= 2.14 | ||
|branch= dev | |branch= dev | ||
|arg= local | |arg= local | ||
|gr1= Remote Control | |gr1= Remote Control | ||
|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| | {{Feature|important|See also [[Remote Control Tutorial]].}} | ||
|s1= [[remoteControlled]] unitOrPlayer | |s1= [[remoteControlled]] unitOrPlayer | ||
Line 14: | Line 15: | ||
|p1= unitOrPlayer: [[Object]] - unit under remote control or the player controlling a unit | |p1= unitOrPlayer: [[Object]] - unit under remote control or the player controlling a unit | ||
|r1= [[Object]] - the person controlling the unit or the | |r1= [[Object]] - the person controlling the unit or the unit controlled by the player; [[objNull]] if not applicable | ||
|x1= <sqf>private _controllingPlayer = remoteControlled _dronePilot;</sqf> | |||
|x2= <sqf>private _dronePilot = remoteControlled _controllingPlayer;</sqf> | |||
|x2= <sqf> | |||
|seealso= [[remoteControl]] [[isRemoteControlling]] | |seealso= [[remoteControl]] [[isRemoteControlling]] | ||
}} | }} |
Revision as of 16:00, 2 September 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 unit controlled by the player; objNull if not applicable
Examples
- Example 1:
- Example 2:
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