Difference between revisions of "turretLocal"

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "|= Game name" to "|Game name=")
m (Text replacement - "|= Game version" to "|Game version=")
Line 4: Line 4:
| arma3 |Game name=
| arma3 |Game name=
|1.32|= Game version
|1.32|Game version=
|arg= global |Multiplayer Arguments=
|arg= global |Multiplayer Arguments=

Revision as of 14:09, 2 September 2019

Introduced with Arma 3 version 1.321.32Arguments of this scripting command don't have to be local to the client the command is executed on
Hover & click on the images for descriptions


Checks if a turret is local.

Some info on turrets: A vehicle turret will change locality when player gunner gets in it, just like vehicle changes locality when player driver gets in it. Many commands for turrets work only where turret is local. When gunner leaves turret it is supposed to change locality to the locality of the vehicle.


vehicle turretLocal turretPath
vehicle: Object
turretPath: Array
Return Value:
Boolean (or, prior to Arma 3 v1.93.145625, Nothing if the turret is non-existent)


Example 1:
_isLocal = vehicle player turretLocal [0];
Example 2:
if (heli turretLocal [1]) then {heli setVehicleAmmo 1};
Example 3:
if (isNil {heli turretLocal [5]}) then {hint "Turret 5 is non-existent"};

Additional Information

See also:


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


Bottom Section