Description
Returns UAV/UGV AI unit, which player is controlling. To return UAV vehicle, see getConnectedUAV
Syntax
getConnectedUAVUnit person
Parameters:
person: Object - unit controlling the UAV/UGV
Returns: Object - UAV unit (AI driver or AI gunner) or objNull otherwise including if the connected person is remote
Examples
Example 1
private _playersDrone = getConnectedUAVUnit player;