getConnectedUAVUnit: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
No edit summary
(2 intermediate revisions by the same user not shown)
Line 7: Line 7:
|gr1= Remote Control
|gr1= Remote Control


|descr= Returns the controller unit of a UAV (or UGV).
|descr= Returns UAV/UGV AI unit, which player is controlling. To return UAV vehicle, see [[getConnectedUAV]]


|s1= [[getConnectedUAVUnit]] uav
|s1= [[getConnectedUAVUnit]] person


|p1= uav: [[Object]] - the UAV/UGV object
|p1= person: [[Object]] - player controlling UAV/UGV


|r1= [[Object]] - the controller unit. [[objNull]] if no unit [[remoteControl|controls]] the UAV.
|r1= [[Object]] - UAV unit (AI driver or AI gunner), [[objNull]] otherwise.


|x1= <code>[[getConnectedUAVUnit]] drone;</code>
|x1= <code>[[getConnectedUAVUnit]] [[player]];</code>


|seealso= [[getConnectedUAV]] [[isUAVConnected]]
|seealso= [[getConnectedUAV]] [[isUAVConnected]]
}}
}}

Revision as of 21:16, 10 September 2021

Hover & click on the images for description
Only available in Development branch(es) until its release with Arma 3 patch v2.08.

Description

Description:
Returns UAV/UGV AI unit, which player is controlling. To return UAV vehicle, see getConnectedUAV
Groups:
Remote Control

Syntax

Syntax:
getConnectedUAVUnit person
Parameters:
person: Object - player controlling UAV/UGV
Return Value:
Object - UAV unit (AI driver or AI gunner), objNull otherwise.

Examples

Example 1:
getConnectedUAVUnit player;

Additional Information

See also:
getConnectedUAV isUAVConnected

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