BIS fnc allTurrets: Difference between revisions
Jump to navigation
Jump to search
m (template:command argument fix) |
m (template:command argument fix) |
||
Line 13: | Line 13: | ||
| vehicleClass call [[BIS_fnc_allTurrets]] |SYNTAX= | | vehicleClass call [[BIS_fnc_allTurrets]] |SYNTAX= | ||
|p1=vehicleClass: [[String]] - Classname of the vehicle |= | |p1=vehicleClass: [[String]] - Classname of the vehicle |PARAMETER1= | ||
|[[Array]] - Array of turret paths |RETURNVALUE= | |[[Array]] - Array of turret paths |RETURNVALUE= | ||
Line 19: | Line 19: | ||
| s2= [vehicleClass, personTurrets] call [[BIS_fnc_allTurrets]] |SYNTAX= | | s2= [vehicleClass, personTurrets] call [[BIS_fnc_allTurrets]] |SYNTAX= | ||
|p21=vehicleClass: [[String]] - Classname of the vehicle |= | |p21=vehicleClass: [[String]] - Classname of the vehicle |PARAMETER1= | ||
|p22=personTurrets: [[Boolean]] | |p22=personTurrets: [[Boolean]] | ||
* [[true]] - include person (cargo) FFV (firing from vehicle) turrets | * [[true]] - include person (cargo) FFV (firing from vehicle) turrets | ||
* [[false]] - exclude person (cargo) FFV turrets|= | * [[false]] - exclude person (cargo) FFV turrets|PARAMETER1= | ||
| r2= [[Array]]|RETURNVALUE= | | r2= [[Array]]|RETURNVALUE= |
Revision as of 14:28, 7 April 2019
Description
- Description:
- Returns all vehicle turrets from config with options. Does what allTurrets command does, except the param is vehicle's config class name
- Execution:
- call
- Groups:
- Uncategorised
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
- 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
- See also:
- allTurretsBIS_fnc_getTurrets
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