BIS fnc turretConfig: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
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(...) |
||
Line 1: | Line 1: | ||
{{Function | {{Function| arma3|1.93|gr1 = Object Manipulation| Returns vehicle turret config for the turret given by the turret path. Using [-1] for turret path returns vehicle config.| [vehicle, turret] call [[BIS_fnc_turretConfig]] |Syntax1= | ||
| arma3 | |||
|1.93 | |||
|gr1 = Object Manipulation | |||
| Returns vehicle turret config for the turret given by the turret path. Using [-1] for turret path returns vehicle config. | |||
| [vehicle, turret] call [[BIS_fnc_turretConfig]] |Syntax1= | |||
|p1= vehicle: [[Object]] or [[String]] - actual vehicle or vehicle type |Parameter1= | |p1= vehicle: [[Object]] or [[String]] - actual vehicle or vehicle type |Parameter1= | ||
|p2= turret: [[Array]] - turret path | |p2= turret: [[Array]] - turret path| [[Config]] - turret config or [[configNull]]|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>| [[BIS_fnc_vehicleCrewTurrets]], [[BIS_fnc_allTurrets]]|See also= | |||
| [[Config]] - turret config or [[configNull]] | |||
|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> | |||
| [[BIS_fnc_vehicleCrewTurrets]], [[BIS_fnc_allTurrets]]|See also= | |||
}} | }} | ||
Revision as of 09:58, 18 January 2021
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