BIS fnc turretConfig: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Arguments in MP|Multiplayer Arguments( \("local" or "global"\))?|Effects|Execution|Effects? in MP|Multiplayer Effects(...) |
Lou Montana (talk | contribs) m (Text replacement - "(\|[pr][0-9]+ *= *[^- ]*) *- *V([a-z ])" to "$1 - v$2") |
||
(18 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{RV|type=function | ||
|p1= vehicle: [[Object]] or [[String]] - | |game1= arma3 | ||
|p2= turret: [[Array]] - turret path| [[Config]] - turret config or [[configNull]]|x1= < | |version1= 1.94 | ||
|gr1= Object Manipulation | |||
|descr= Returns vehicle turret config for the turret given by the turret path. | |||
|s1= [vehicle, turret] call [[BIS_fnc_turretConfig]] | |||
|p1= vehicle: [[Object]] or [[String]] - vehicle or vehicle type | |||
|p2= turret: [[Array]] - turret path | |||
|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> | |||
[[ | |x2= <sqf>getNumber ([car1, [-1]] call BIS_fnc_turretConfig >> "hasDriver") > 0;</sqf> | ||
[[ | |seealso= [[BIS_fnc_vehicleCrewTurrets]] [[BIS_fnc_allTurrets]] | ||
}} |
Latest revision as of 15:53, 8 November 2023
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