Arma 3 Scripting

Function in Object Manipulation

BIS_fnc_turretConfig

Also available as Markdown and JSON, or read the original wiki page.

Description

Returns vehicle turret config for the turret given by the turret path.

Syntax

[vehicle, turret] call BIS_fnc_turretConfig

Parameters:

Returns: Config - turret config or configNull. Using [-1] for turret path returns vehicle config

Examples

Example 1

getNumber (["B_APC_Wheeled_01_cannon_F", [0,0]] call BIS_fnc_turretConfig >> "hasGunner") > 0;

Example 2

getNumber ([car1, [-1]] call BIS_fnc_turretConfig >> "hasDriver") > 0;

See also

BIS_fnc_vehicleCrewTurrets · BIS_fnc_allTurrets