BIS fnc turretConfig: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(format)
m (out of dev)
Line 2: Line 2:
____________________________________________________________________________________________
____________________________________________________________________________________________


| arma3dev |Game name=
| arma3 |Game name=


|1.93|Game version=
|1.93|Game version=

Revision as of 10:31, 22 August 2019

Hover & click on the images for description

Description

Description:
Returns vehicle turret config for the turret given by the turret path. Using [-1] for turret path returns vehicle config.
Execution:
call
Groups:
Uncategorised

Syntax

Syntax:
[vehicle, turret] call BIS_fnc_turretConfig
Parameters:
vehicle: Object or String - actual vehicle or vehicle type
turret: Array - turret path
Return Value:
Config - turret config or configNull

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;

Additional Information

See also:
BIS_fnc_vehicleCrewTurretsBIS_fnc_allTurrets

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