UAVControl: Difference between revisions
Lou Montana (talk | contribs) m (Some wiki formatting) |
Pabstmirror (talk | contribs) m (fix example) |
||
Line 23: | Line 23: | ||
|x2= Since {{GVI|arma3|1.96|size= 0.75}} this command returns both driver and gunner units if the UAV is controlled by 2 players. Here is the list of all expected outputs: | |x2= Since {{GVI|arma3|1.96|size= 0.75}} this command returns both driver and gunner units if the UAV is controlled by 2 players. Here is the list of all expected outputs: | ||
<sqf> | <sqf> | ||
[player1, "DRIVER"] // player1 is controlling the UAV and is the pilot | [player1, "DRIVER"]; // player1 is controlling the UAV and is the pilot | ||
[player2, "GUNNER"] // player2 is controlling the UAV and is the gunner | [player2, "GUNNER"]; // player2 is controlling the UAV and is the gunner | ||
[player1, "DRIVER", player2, "GUNNER"] // player1 is controlling the UAV as the pilot, player2 is controlling the UAV as the gunner | [player1, "DRIVER", player2, "GUNNER"]; // player1 is controlling the UAV as the pilot, player2 is controlling the UAV as the gunner | ||
[player3, ""] // no one is controlling the UAV, player3 is connected to the UAV via terminal, but not controlling it yet | [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 | [objNull, ""]; // nobody is controlling or connected to the UAV | ||
</sqf> | </sqf> | ||
|seealso= [[showUAVFeed]] [[shownUAVFeed]] [[allUnitsUAV]] [[getConnectedUAV]] [[connectTerminalToUAV]] [[isUAVConnected]] [[remoteControl]] [[currentPilot]] [[isRemoteControlling]] [[remoteControlled]] | |seealso= [[showUAVFeed]] [[shownUAVFeed]] [[allUnitsUAV]] [[getConnectedUAV]] [[connectTerminalToUAV]] [[isUAVConnected]] [[remoteControl]] [[currentPilot]] [[isRemoteControlling]] [[remoteControlled]] | ||
}} | }} |
Latest revision as of 03:39, 11 October 2025
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. If nobody is connected, objNull is used as returned operator (see Example 2).
- Groups:
- Remote Control
Syntax
- Syntax:
- UAVControl uav
- Parameters:
- uav: Object
- Return Value:
- Array in format [unit, vehicleRole]
1.96 or [unit1, vehicleRole1, unit2, vehicleRole2] (see Example 2), where:
Examples
- Example 1:
- Example 2:
- Since
1.96 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 as the pilot, player2 is controlling the UAV as 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
Additional Information
- See also:
- showUAVFeed shownUAVFeed allUnitsUAV getConnectedUAV connectTerminalToUAV isUAVConnected remoteControl currentPilot isRemoteControlling remoteControlled
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