BIS fnc turretConfig: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "<code> *([^<|{]*) *<\/code>" to "<sqf>$1</sqf>") |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
Line 14: | Line 14: | ||
|p2= turret: [[Array]] - Turret path | |p2= turret: [[Array]] - Turret path | ||
|r1= [[Config]] - Turret config or [[configNull]]. Using {{ | |r1= [[Config]] - Turret config or [[configNull]]. Using {{hl|[-1]}} for turret path returns vehicle config | ||
|x1= <sqf>getNumber (["B_APC_Wheeled_01_cannon_F", [0,0]] call BIS_fnc_turretConfig >> "hasGunner") > 0;</sqf> | |x1= <sqf>getNumber (["B_APC_Wheeled_01_cannon_F", [0,0]] call BIS_fnc_turretConfig >> "hasGunner") > 0;</sqf> |
Revision as of 17:29, 27 July 2022
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:
- Example 2:
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