BIS fnc allTurrets: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\| *(arg|eff|mp|serverExec|gr[0-9]) *= *(.*) * *\|([^=]{12})" to "|$1=$2 |descr=$3") |
Lou Montana (talk | contribs) m (Text replacement - "\|seealso= ([^ ]+)(\]\]|\}\}), *(\[\[|\{\{)" to "|seealso= $1$2 $3") |
||
(7 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{RV|type=function | {{RV|type=function | ||
| arma3 | |game1= arma3 | ||
|version1= 1.76 | |||
|1.76 | |||
|gr1= Object Manipulation | |gr1= Object Manipulation | ||
Line 9: | Line 8: | ||
|descr= 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= | |s1= vehicleClass call [[BIS_fnc_allTurrets]] | ||
|p1= vehicleClass: [[String]] - | |p1= vehicleClass: [[String]] - classname of the vehicle | ||
|r1=[[Array]] | |r1= [[Array]] of turret paths | ||
|s2= [vehicleClass, personTurrets] call [[BIS_fnc_allTurrets]] | |s2= [vehicleClass, personTurrets] call [[BIS_fnc_allTurrets]] | ||
|p21=vehicleClass: [[String]] - | |p21= vehicleClass: [[String]] - classname of the vehicle | ||
|p22=personTurrets: [[Boolean]] - [[true]] to include FFV (firing from vehicle) turrets, [[false]] to exclude them | |p22= personTurrets: [[Boolean]] - [[true]] to include FFV (firing from vehicle) turrets, [[false]] to exclude them | ||
|r2= [[Array]] | |r2= [[Array]] | ||
|x1= < | |x1= <sqf>private _allTurrets = "C_Offroad_01_F" call BIS_fnc_allTurrets; // []</sqf> | ||
|x2= < | |x2= <sqf>private _allTurrets = ["C_Offroad_01_F", true] call BIS_fnc_allTurrets; // [[0],[1],[2],[3]]</sqf> | ||
|x3= < | |x3= <sqf>private _allTurrets = ["C_Offroad_01_F", false] call BIS_fnc_allTurrets; // []</sqf> | ||
|seealso= [[allTurrets]] | |seealso= [[allTurrets]] [[BIS_fnc_getTurrets]] [[BIS_fnc_turretConfig]] [[BIS_fnc_vehicleCrewTurrets]] | ||
}} | }} |
Latest revision as of 12:58, 1 July 2022
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 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:
- Example 2:
- Example 3:
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