UAVControl: Difference between revisions
Killzone Kid (talk | contribs) No edit summary |
Killzone Kid (talk | contribs) No edit summary |
||
| Line 11: | Line 11: | ||
|descr= Returns array with current operator of UAV and his vehicle role in UAV. | |descr= 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 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 {{Link|#Example 2}}). The command returns only [[local]] | If nobody is connected, [[objNull]] is used as returned operator (see {{Link|#Example 2}}). The command returns only [[local]] connections. | ||
{{Feature|informative|This command works only for vehicles, to get a unit remote-controlling a unit, see [[remoteControlled]] and {{Link|remoteControl#Example 4}}.}} | {{Feature|informative|This command works only for vehicles, to get a unit remote-controlling a unit, see [[remoteControlled]] and {{Link|remoteControl#Example 4}}.}} | ||
Revision as of 13:12, 19 January 2026
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). The command returns only local connections.
- Groups:
- Remote Control
Syntax
- Syntax:
- UAVControl uav
- Parameters:
- uav: Object
- Return Value:
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 but there maybe an abandoned terminal connected to the UAV, // which will auto-disconnect when a new connection to the UAV is made
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.
Only post proven facts here! Add Note