Arma 3 Scripting

unitTurret

  • Arma 3 v2.00

Command · Markdown · JSON · original wiki page

Description

Returns the turret path the given vehicle's gunner is in. To get the turret's unit see turretUnit.

Syntax

vehicle unitTurret gunner

Parameters:

Returns: Turret Path - [-1] is returned if the gunner is also the driver. When no units are in any of vehicle's turret, empty array [] is returned.

Examples

Example 1

_vehicle unitTurret _gunner;

Example 2

vehicle player unitTurret player;

See also

turretUnit · driver · gunner · commander · effectiveCommander · currentPilot · moveInTurret · assignAsTurret · assignedVehicleRole · lockedTurret · isTurnedOut