BIS fnc allTurrets: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " \| *([^= ]+) * +\|s2=" to " |r1=$1 |s2=") |
Lou Montana (talk | contribs) m (Text replacement - "\| *(arg|eff|mp|serverExec|gr[0-9]) *= *(.*) * *\|([^=]{12})" to "|$1=$2 |descr=$3") |
||
Line 7: | Line 7: | ||
|gr1= Object Manipulation | |gr1= Object Manipulation | ||
| Returns all vehicle turrets from config with options. Does what [[allTurrets]] command does, except the param is vehicle's config classname. | |descr= Returns all vehicle turrets from config with options. Does what [[allTurrets]] command does, except the param is vehicle's config classname. | ||
|s1= vehicleClass call [[BIS_fnc_allTurrets]] | |s1= vehicleClass call [[BIS_fnc_allTurrets]] |
Revision as of 20:36, 13 June 2021
Description
- Description:
- Returns all vehicle turrets from config with options. Does what allTurrets command does, except the param is vehicle's config classname.
- Execution:
- call
- Groups:
- Object Manipulation
Syntax
- Syntax:
- vehicleClass call BIS_fnc_allTurrets
- Parameters:
- vehicleClass: String - Classname of the vehicle
- Return Value:
- Array - Array of turret paths
Alternative Syntax
- Syntax:
- [vehicleClass, personTurrets] call BIS_fnc_allTurrets
- Parameters:
- vehicleClass: String - Classname of the vehicle
- personTurrets: Boolean - true to include FFV (firing from vehicle) turrets, false to exclude them
- Return Value:
- Array
Examples
- Example 1:
_allTurrets = "C_Offroad_01_F" call BIS_fnc_allTurrets; // []
- Example 2:
_allTurrets = ["C_Offroad_01_F", true] call BIS_fnc_allTurrets; // [[0],[1],[2],[3]]
- Example 3:
_allTurrets = ["C_Offroad_01_F", false] call BIS_fnc_allTurrets; // []
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