getConnectedUAVUnit: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "|branch= dev " to "")
m (Some wiki formatting)
Line 3: Line 3:
|game1= arma3
|game1= arma3
|version1= 2.08
|version1= 2.08
|gr1= Remote Control
|gr1= Remote Control


Line 9: Line 10:
|s1= [[getConnectedUAVUnit]] person
|s1= [[getConnectedUAVUnit]] person


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


|r1= [[Object]] - UAV unit (AI driver or AI gunner), [[objNull]] otherwise.
|r1= [[Object]] - UAV unit (AI driver or AI gunner), [[objNull]] otherwise


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


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

Revision as of 13:43, 3 May 2022

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), objNull otherwise

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