BIS fnc turretConfig: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "]]|x1" to "]] |x1") |
m (formatting) |
||
Line 1: | Line 1: | ||
{{RV|type=function | {{RV|type=function | ||
|p1= vehicle: [[Object]] or [[String]] - | |game1= arma3 | ||
|p2= turret: [[Array]] - | |||
|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| [[Config]] - Turret config or [[configNull]]. Using {{ic|[-1]}} for turret path returns vehicle config | |||
|x1= <code>[[getNumber]] (["B_APC_Wheeled_01_cannon_F", [0,0]] [[call]] [[BIS_fnc_turretConfig]] >> "hasGunner") > 0;</code> | |x1= <code>[[getNumber]] (["B_APC_Wheeled_01_cannon_F", [0,0]] [[call]] [[BIS_fnc_turretConfig]] >> "hasGunner") > 0;</code> | ||
|x2= <code>[[getNumber]] ([car1, [-1]] [[call]] [[BIS_fnc_turretConfig]] >> "hasDriver") > 0;</code> | |||
|seealso= [[BIS_fnc_vehicleCrewTurrets]], [[BIS_fnc_allTurrets]] | |||
[[ | }} |
Revision as of 17:42, 20 April 2021
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:
- Return value needed
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