BIS fnc allTurrets: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Move to 1.76 category)
m (template:command argument fix)
Line 8: Line 8:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Returns all vehicle turrets from config with options. Does what [[allTurrets]] command does, except the param is vehicle's config class name|= Description
| Returns all vehicle turrets from config with options. Does what [[allTurrets]] command does, except the param is vehicle's config class name|DESCRIPTION=
____________________________________________________________________________________________
____________________________________________________________________________________________


| vehicleClass call [[BIS_fnc_allTurrets]] |= Syntax
| vehicleClass call [[BIS_fnc_allTurrets]] |SYNTAX=


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


|[[Array]] - Array of turret paths |= Return value
|[[Array]] - Array of turret paths |RETURNVALUE=


| s2= [vehicleClass, personTurrets] call [[BIS_fnc_allTurrets]] |= Syntax
| s2= [vehicleClass, personTurrets] call [[BIS_fnc_allTurrets]] |SYNTAX=


|p21=vehicleClass: [[String]] - Classname of the vehicle |= Parameter 1
|p21=vehicleClass: [[String]] - Classname of the vehicle |= Parameter 1
Line 24: Line 24:
* [[false]] - exclude person (cargo) FFV turrets|= Parameter 1
* [[false]] - exclude person (cargo) FFV turrets|= Parameter 1


| r2= [[Array]]|= Return value
| r2= [[Array]]|RETURNVALUE=
____________________________________________________________________________________________
____________________________________________________________________________________________


Line 32: Line 32:
____________________________________________________________________________________________
____________________________________________________________________________________________


| [[allTurrets]], [[BIS_fnc_getTurrets]]|= See also
| [[allTurrets]], [[BIS_fnc_getTurrets]]|SEEALSO=


}}
}}

Revision as of 11:26, 7 April 2019


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 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
  • true - include person (cargo) FFV (firing from vehicle) turrets
  • false - exclude person (cargo) FFV turrets
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

Notes

Bottom Section