BIS fnc allTurrets: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category\:Function Group\: Objects(\|\{\{[a-zA-Z0-9_:]+\}\})?\]\]" to "")
m (Text replacement - "_{10,} " to "")
Line 1: Line 1:
{{Function|Comments=
{{Function|Comments=
____________________________________________________________________________________________


| arma3|Game name=
| arma3|Game name=
Line 7: Line 6:


|gr1 = Object Manipulation |GROUP1=
|gr1 = Object Manipulation |GROUP1=
____________________________________________________________________________________________


| Returns all vehicle turrets from config with options. Does what [[allTurrets]] command does, except the param is vehicle's config classname. |DESCRIPTION=
| 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=
Line 25: Line 22:


|r2= [[Array]]|RETURNVALUE2=
|r2= [[Array]]|RETURNVALUE2=
____________________________________________________________________________________________


|x1= <code>_allTurrets = "C_Offroad_01_F" [[call]] [[BIS_fnc_allTurrets]]; {{cc|[]}}</code> |Example1=
|x1= <code>_allTurrets = "C_Offroad_01_F" [[call]] [[BIS_fnc_allTurrets]]; {{cc|[]}}</code> |Example1=
Line 32: Line 28:


|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]]; {{cc|[]}}</code> |Example3=
____________________________________________________________________________________________


| [[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 22:37, 16 January 2021

Hover & click on the images for description

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 - 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

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

Notes

Bottom Section