allTurrets

From Bohemia Interactive Community
Revision as of 03:23, 16 November 2014 by Waffle SS. (talk | contribs) (Updated game version)
Jump to navigation Jump to search
Hover & click on the images for description

Description

Description:
Returns array of available turret paths.
Groups:
Uncategorised

Syntax

Syntax:
allTurrets vehicle
Parameters:
vehicle: Object
Return Value:
Array

Alternative Syntax

Syntax:
allTurrets [vehicle, includePersonTurrets]
Parameters:
[vehicle, includePersonTurrets]: Array
vehicle: Object
includePersonTurrets: Boolean - true to include person (cargo) turrets as well
Return Value:
Array

Examples

Example 1:
_turretPaths = allTurrets MH_9; //[[0]] _turretPaths = allTurrets [MH_9, true]; //[[0],[1],[2],[3],[4]] _turretPaths = allTurrets [MH_9, false]; //[[0]]

Additional Information

See also:
moveInTurretenablePersonTurretassignedVehicleRolefullCrew

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