UAVControl: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments \("local" or "global"\)|Multiplayer Effects \("local" or "global"\)|Multiplayer Execution \("serv...) |
||
Line 1: | Line 1: | ||
{{Command | {{Command | ||
| arma3 | | arma3 | ||
|1.00 | |1.00 | ||
|gr1= Remote Control | |gr1= Remote Control | ||
| Returns array with current operator of UAV and his vehicle role in UAV. If nobody is controlling the UAV, the command tries to find any person with connected terminal to this UAV, in which case the vehicle role is an empty string. If command cannot find anyone, output is <tt><nowiki>[</nowiki>[[objNull]], ""]</tt>. | | Returns array with current operator of UAV and his vehicle role in UAV. If nobody is controlling the UAV, the command tries to find any person with connected terminal to this UAV, in which case the vehicle role is an empty string. If command cannot find anyone, output is <tt><nowiki>[</nowiki>[[objNull]], ""]</tt>. | ||
Line 16: | Line 16: | ||
* <tt><nowiki>[</nowiki>[[objNull]], ""]</tt> - nobody is controlling or connected to the UAV | * <tt><nowiki>[</nowiki>[[objNull]], ""]</tt> - nobody is controlling or connected to the UAV | ||
<br> | <br> | ||
{{Informative | This command works only for vehicles, to get a unit remote controlling a unit, see Example 3 on the [[remoteControl]] page.}} | {{Informative | This command works only for vehicles, to get a unit remote controlling a unit, see Example 3 on the [[remoteControl]] page.}} | ||
| [[UAVControl]] uav | | [[UAVControl]] uav | ||
|p1= uav: [[Object]] | |p1= uav: [[Object]] | ||
| [[Array]] - in format [unit, vehicleRole] (or sometimes [unit1, vehicleRole, unit2, vehicleRole], see description), where: | | [[Array]] - in format [unit, vehicleRole] (or sometimes [unit1, vehicleRole, unit2, vehicleRole], see description), where: | ||
* unit: [[Object]] - UAV operator | * unit: [[Object]] - UAV operator | ||
* vehicleRole: [[String]] - vehicle role of the operator in UAV. Could be "DRIVER", "GUNNER" or "" (see description) | * vehicleRole: [[String]] - vehicle role of the operator in UAV. Could be "DRIVER", "GUNNER" or "" (see description) | ||
|x1= <code>[[UAVControl]] uav;</code> | |x1= <code>[[UAVControl]] uav;</code> | ||
| [[showUAVFeed]], [[shownUAVFeed]], [[allUnitsUAV]], [[getConnectedUAV]], [[connectTerminalToUAV]], [[isUAVConnected]], [[remoteControl]], [[currentPilot]] | | [[showUAVFeed]], [[shownUAVFeed]], [[allUnitsUAV]], [[getConnectedUAV]], [[connectTerminalToUAV]], [[isUAVConnected]], [[remoteControl]], [[currentPilot]] | ||
| |MPBEHAVIOUR= | | |MPBEHAVIOUR= |
Revision as of 00:01, 18 January 2021
Description
- Description:
- Returns array with current operator of UAV and his vehicle role in UAV. If nobody is controlling the UAV, the command tries to find any person with connected terminal to this UAV, in which case the vehicle role is an empty string. If command cannot find anyone, output is [objNull, ""].
Since Arma 3 v1.95.146028 this command returns both driver and gunner units if the UAV is controlled by 2 players. Here is the list of all expected outputs:- [player1, "DRIVER"] - player1 is controlling the UAV and is the pilot
- [player2, "GUNNER"] - player2 is controlling the UAV and is the gunner
- [player1, "DRIVER", player2, "GUNNER"] - player1 is controlling the UAV and is the pilot, player2 is controlling UAV and is the gunner
- [player3, ""] - no one is controlling the UAV, player3 is connected to the UAV via terminal, but not controlling it yet
- [objNull, ""] - nobody is controlling or connected to the UAV
- Groups:
- Remote Control
Syntax
- Syntax:
- UAVControl uav
- Parameters:
- uav: Object
- Return Value:
- Array - in format [unit, vehicleRole] (or sometimes [unit1, vehicleRole, unit2, vehicleRole], see description), where:
Examples
- Example 1:
UAVControl uav;
Additional Information
- See also:
- showUAVFeedshownUAVFeedallUnitsUAVgetConnectedUAVconnectTerminalToUAVisUAVConnectedremoteControlcurrentPilot
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