getConnectedUAVUnit: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Article creation)
 
No edit summary
 
(8 intermediate revisions by 3 users not shown)
Line 3: Line 3:
|game1= arma3
|game1= arma3
|version1= 2.08
|version1= 2.08
|branch= dev
|arg= local
 
|gr1= Remote Control
|gr1= Remote Control


|descr= Returns unit if the UAV has controller unit.
|descr= Returns UAV/UGV AI unit, which player is controlling. To return UAV vehicle, see [[getConnectedUAV]]


|s1= [[getConnectedUAVUnit]] unit
|s1= [[getConnectedUAVUnit]] person


|p1= unit: [[Object]]
|p1= person: [[Object]] - unit controlling the UAV/UGV


|r1= [[Object]] - the controller unit. [[objNull]] if no unit controls the UAV.
|r1= [[Object]] - UAV unit (AI driver or AI gunner) or [[objNull]] otherwise including if the connected person is remote


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


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

Latest revision as of 22:23, 25 March 2024

Hover & click on the images for description

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 - unit controlling the UAV/UGV
Return Value:
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;

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