Page MenuHomeFeedback Tracker

UAVControl only reports a single unit
Closed, ResolvedPublic


The script command UAVControl unfortunately only reports a single unit. Here are the states:

When there is only unitA connected with a UAV terminal, the return is:

When there is only unitA in the gunner seat of the UAV, the return is:

When there is only unitA in the driver seat of the UAV, the return is:

So far, so good. The issue arises when there is more than one unit controlling different roles of the UAV. For example when there is a driver connected (unitA, using normal UAV terminal) and a gunner as well (unitB, using remoteControl and switchCamera script commands), UAVControl will return:
So no mention of the gunner. If the driver releases control while still keeping his UAV terminal connected, UAVControl will return:
If the gunner releases control (using objNull remoteControl and switchCamera), UAVControl will return:

The real-life problem that arises from this is that as soon as there is a driver present, I cannot find out if there is a gunner or not. If I allow a unit to take control of the gunner and there is already a gunner, the camera of the previous gunner goes all wonky, rendering the game unusable for that person.

I have been looking for workarounds to reliably detect if a UAV's gunner is being remote controlled, but so far I have found none. There doesn't seem to be a script command that returns the current controller of a unit, something like:
remoteController gunner _uav
with the return being the player object that is currently in control, or objNull if there isn't one.


Legacy ID
Operating System
Windows 7

Event Timeline

Gundy set Category to Scripting.Apr 11 2015, 1:49 AM
Gundy set Reproducibility to Always.
Gundy set Severity to None.
Gundy set Resolution to Open.
Gundy set Legacy ID to 2593006603.May 8 2016, 11:54 AM
Since Arma 3 v1.96 this command returns both driver and gunner units if the UAV is controlled by 2 players.

Can be set as resolved.

BIS_fnc_KK closed this task as Resolved.Mar 27 2023, 12:21 PM
BIS_fnc_KK updated the task description. (Show Details)
BIS_fnc_KK changed Resolution from Open to Fixed.
BIS_fnc_KK set Operating System to Windows 7.