unitTurret: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " +" to " ")
m (Text replacement - " \| *(([^=\| ]+)('''|\[\[)([^=\| ]+)) * +\|p1=" to " |s1= $1 |p1=")
Line 9: Line 9:
| Returns the turret path the given vehicle's gunner is in. <tt>[-1]</tt> is returned if gunner is driver. When unit is not in any of vehicle's turret, empty array <tt>[]</tt> is returned. To get unit in turret see [[turretUnit]]
| Returns the turret path the given vehicle's gunner is in. <tt>[-1]</tt> is returned if gunner is driver. When unit is not in any of vehicle's turret, empty array <tt>[]</tt> is returned. To get unit in turret see [[turretUnit]]


| vehicle [[unitTurret]] gunner
|s1=  vehicle [[unitTurret]] gunner


|p1= vehicle: [[Object]]
|p1= vehicle: [[Object]]

Revision as of 00:25, 13 June 2021

Hover & click on the images for description

Description

Description:
Description needed
Groups:
Turrets

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

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