unitTurret

From Bohemia Interactive Community
Revision as of 11:24, 8 July 2020 by killzone_kid (talk | contribs)
Jump to navigation Jump to search
Introduced with Arma 3 Development Branch version 1.991.99DEV BRANCH ONLY ⚠
Hover & click on the images for descriptions

Description

Description:
Returns the turret path the given vehicle's gunner is in. [-1] is returned if gunner is driver. When unit is not in any of vehicle's turret, empty array [] is returned. To get unit in turret see turretUnit

Syntax

Syntax:
vehicle unitTurret gunner
Parameters:
vehicle: Object
gunner: Object
Return Value:
Array - turret path

Examples

Example 1:
_vehicle unitTurret _gunner;
Example 2:
vehicle player unitTurret player;

Additional Information

See also:
turretUnitdrivergunnercommandereffectiveCommandercurrentPilotmoveInTurretassignAsTurretassignedVehicleRolelockedTurretisTurnedOut
Groups:
Uncategorised

Notes

i
Only post proven facts here. Report bugs on the Feedback Tracker and discuss on the Arma Discord or on the Forums.

Notes

Bottom Section