BIS fnc turretConfig: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category\:Function Group\: Objects(\|\{\{[a-zA-Z0-9_:]+\}\})?\]\]" to "")
m (Text replacement - "_{10,} " to "")
Line 1: Line 1:
{{Function|Comments=
{{Function|Comments=
____________________________________________________________________________________________


| arma3 |Game name=
| arma3 |Game name=
Line 7: Line 6:


|gr1 = Object Manipulation |GROUP1=
|gr1 = Object Manipulation |GROUP1=
____________________________________________________________________________________________


| Returns vehicle turret config for the turret given by the turret path. Using [-1] for turret path returns vehicle config. |Description=
| Returns vehicle turret config for the turret given by the turret path. Using [-1] for turret path returns vehicle config. |Description=
____________________________________________________________________________________________


| [vehicle, turret] call [[BIS_fnc_turretConfig]] |Syntax1=
| [vehicle, turret] call [[BIS_fnc_turretConfig]] |Syntax1=
Line 18: Line 15:


| [[Config]] - turret config or [[configNull]] |Returnvalue1=
| [[Config]] - turret config or [[configNull]] |Returnvalue1=
____________________________________________________________________________________________


|x1= <code>[[getNumber]] (["B_APC_Wheeled_01_cannon_F", [0,0]] [[call]] [[BIS_fnc_turretConfig]] >> "hasGunner") > 0;</code> |Example1=
|x1= <code>[[getNumber]] (["B_APC_Wheeled_01_cannon_F", [0,0]] [[call]] [[BIS_fnc_turretConfig]] >> "hasGunner") > 0;</code> |Example1=
|x2= <code>[[getNumber]] ([car1, [-1]] [[call]] [[BIS_fnc_turretConfig]] >> "hasDriver") > 0;</code> |Example2=
|x2= <code>[[getNumber]] ([car1, [-1]] [[call]] [[BIS_fnc_turretConfig]] >> "hasDriver") > 0;</code> |Example2=
____________________________________________________________________________________________


| [[BIS_fnc_vehicleCrewTurrets]], [[BIS_fnc_allTurrets]]|See also=
| [[BIS_fnc_vehicleCrewTurrets]], [[BIS_fnc_allTurrets]]|See also=

Revision as of 01:08, 17 January 2021

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:
Object Manipulation

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