BIS fnc turretConfig: Difference between revisions
Jump to navigation
Jump to search
m (Text replacement - "|Game version=" to "|Game version= |gr1 = Object Manipulation |GROUP1=") |
m (Text replacement - "\[\[Category\:Function Group\: Objects(\|\{\{[a-zA-Z0-9_:]+\}\})?\]\]" to "") |
||
Line 28: | Line 28: | ||
[[Category:Functions|{{uc:turretConfig}}]] | [[Category:Functions|{{uc:turretConfig}}]] | ||
[[Category:{{Name|arma3}}: Functions|{{uc:turretConfig}}]] | [[Category:{{Name|arma3}}: Functions|{{uc:turretConfig}}]] |
Revision as of 09:25, 10 October 2020
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
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