BIS fnc allTurrets: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "{{Function " to "{{RV|type=function ")
m (Text replacement - " *\| *PARAMETER[0-9]{1,3} *= * " to " ")
Line 17: Line 17:
|s2= [vehicleClass, personTurrets] call [[BIS_fnc_allTurrets]]
|s2= [vehicleClass, personTurrets] call [[BIS_fnc_allTurrets]]


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


|p22=personTurrets: [[Boolean]] - [[true]] to include FFV (firing from vehicle) turrets, [[false]] to exclude them |PARAMETER22=
|p22=personTurrets: [[Boolean]] - [[true]] to include FFV (firing from vehicle) turrets, [[false]] to exclude them


|r2= [[Array]]
|r2= [[Array]]

Revision as of 19:09, 29 January 2021

Hover & click on the images for description

Description

Description:
Description needed
Execution:
call
Groups:
Object Manipulation

Syntax

Syntax:
Syntax needed
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:
See also needed

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