BIS fnc turretConfig: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "<code>([^<]*)\[\[([a-zA-Z][a-zA-Z0-9_]+)\]\]([^<]*) *<\/code>" to "<code>$1$2$3</code>")
m (Text replacement - "<code> *([^<|{]*) *<\/code>" to "<sqf>$1</sqf>")
Line 16: Line 16:
|r1= [[Config]] - Turret config or [[configNull]]. Using {{ic|[-1]}} for turret path returns vehicle config
|r1= [[Config]] - Turret config or [[configNull]]. Using {{ic|[-1]}} for turret path returns vehicle config


|x1= <code>getNumber (["B_APC_Wheeled_01_cannon_F", [0,0]] call BIS_fnc_turretConfig >> "hasGunner") > 0;</code>
|x1= <sqf>getNumber (["B_APC_Wheeled_01_cannon_F", [0,0]] call BIS_fnc_turretConfig >> "hasGunner") > 0;</sqf>


|x2= <code>getNumber ([car1, [-1]] call BIS_fnc_turretConfig >> "hasDriver") > 0;</code>
|x2= <sqf>getNumber ([car1, [-1]] call BIS_fnc_turretConfig >> "hasDriver") > 0;</sqf>


|seealso= [[BIS_fnc_vehicleCrewTurrets]] [[BIS_fnc_allTurrets]]
|seealso= [[BIS_fnc_vehicleCrewTurrets]] [[BIS_fnc_allTurrets]]
}}
}}

Revision as of 22:45, 12 July 2022

Hover & click on the images for description

Description

Description:
Returns vehicle turret config for the turret given by the turret path.
Execution:
call
Groups:
Object Manipulation

Syntax

Syntax:
[vehicle, turret] call BIS_fnc_turretConfig
Parameters:
vehicle: Object or String - Vehicle or vehicle type
turret: Array - Turret path
Return Value:
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;

Additional Information

See also:
BIS_fnc_vehicleCrewTurrets BIS_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