BIS fnc allTurrets: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\|gr([0-9]+) = " to "|gr$1= ")
m (Text replacement - " \| *([^=\| ]+) * \|p1=" to " |s1= $1 |p1=")
Line 9: Line 9:
| Returns all vehicle turrets from config with options. Does what [[allTurrets]] command does, except the param is vehicle's config classname.
| Returns all vehicle turrets from config with options. Does what [[allTurrets]] command does, except the param is vehicle's config classname.


| vehicleClass call [[BIS_fnc_allTurrets]]
|s1=  vehicleClass call [[BIS_fnc_allTurrets]]


|p1= vehicleClass: [[String]] - Classname of the vehicle
|p1= vehicleClass: [[String]] - Classname of the vehicle

Revision as of 22:43, 12 June 2021

Hover & click on the images for description

Description

Description:
Description needed
Execution:
call
Groups:
Object Manipulation

Syntax

Syntax:
vehicleClass call BIS_fnc_allTurrets
Parameters:
vehicleClass: String - Classname of the vehicle
Return Value:
Return value needed

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

See also:
allTurretsBIS_fnc_getTurretsBIS_fnc_turretConfigBIS_fnc_vehicleCrewTurrets

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