BIS fnc allTurrets: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "|= |x2=" to "|Example1= |x2=") |
Lou Montana (talk | contribs) |
||
Line 1: | Line 1: | ||
{{Function|Comments= | {{Function|Comments= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Line 8: | Line 7: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| Returns all vehicle turrets from config with options. Does what [[allTurrets]] command does, except the param is vehicle's config | | Returns all vehicle turrets from config with options. Does what [[allTurrets]] command does, except the param is vehicle's config classname. |DESCRIPTION= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| vehicleClass call [[BIS_fnc_allTurrets]] |SYNTAX= | | vehicleClass call [[BIS_fnc_allTurrets]] |SYNTAX= | ||
|p1=vehicleClass: [[String]] - Classname of the vehicle |PARAMETER1= | |p1= vehicleClass: [[String]] - Classname of the vehicle |PARAMETER1= | ||
|[[Array]] - Array of turret paths |RETURNVALUE= | |[[Array]] - Array of turret paths |RETURNVALUE= | ||
| s2= [vehicleClass, personTurrets] call [[BIS_fnc_allTurrets]] |SYNTAX2= | |s2= [vehicleClass, personTurrets] call [[BIS_fnc_allTurrets]] |SYNTAX2= | ||
|p21=vehicleClass: [[String]] - Classname of the vehicle |PARAMETER21= | |p21=vehicleClass: [[String]] - Classname of the vehicle |PARAMETER21= | ||
| r2= [[Array]]| | |p22=personTurrets: [[Boolean]] - [[true]] to include FFV (firing from vehicle) turrets, [[false]] to exclude them |PARAMETER22= | ||
|r2= [[Array]]|RETURNVALUE2= | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= <code>_allTurrets = "C_Offroad_01_F" [[call]] [[BIS_fnc_allTurrets]]; // []</code> | | |x1= <code>_allTurrets = "C_Offroad_01_F" [[call]] [[BIS_fnc_allTurrets]]; {{cc|[]}}</code> |Example1= | ||
|x2= <code>_allTurrets = ["C_Offroad_01_F", [[true]]] [[call]] [[BIS_fnc_allTurrets]]; {{cc|<nowiki>[</nowiki>[0],[1],[2],[3]]}}</code> |Example2= | |||
|x3= <code>_allTurrets = ["C_Offroad_01_F", [[false]]] [[call]] [[BIS_fnc_allTurrets]]; {{cc|[]}}</code> |Example3= | |||
|x3= <code>_allTurrets = ["C_Offroad_01_F", [[false]]] [[call]] [[BIS_fnc_allTurrets]]; | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [[allTurrets]], [[BIS_fnc_getTurrets]], [[BIS_fnc_turretConfig]], [[BIS_fnc_vehicleCrewTurrets]]|SEEALSO= | | [[allTurrets]], [[BIS_fnc_getTurrets]], [[BIS_fnc_turretConfig]], [[BIS_fnc_vehicleCrewTurrets]]|SEEALSO= | ||
}} | }} | ||
Revision as of 23:18, 4 September 2019
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:
- 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 - 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