allTurrets

From Bohemia Interactive Community
Revision as of 14:22, 21 October 2014 by Killzone Kid (talk | contribs) (Created page with "{{Command|= Comments ____________________________________________________________________________________________ | arma3dev |= Game name |1.33|= Game version _____________...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
-wrong parameter ("arma3dev") defined!-[[:Category:Introduced with arma3dev version 1.33|1.33]]
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

[[Category:Introduced with arma3dev version 1.33]][[ Category: arma3dev: New Scripting Commands | ALLTURRETS]][[ Category: arma3dev: Scripting Commands | ALLTURRETS]]

Notes

Bottom Section