allTurrets: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (1.33 doesn't exist in stable)
(updated)
Line 15: Line 15:
| [[Array]] |= Return value |= Return value
| [[Array]] |= Return value |= Return value
____________________________________________________________________________________________
____________________________________________________________________________________________
|s2='''allTurrets''' [vehicle, includePersonTurrets]|= Syntax
|s2='''allTurrets''' [vehicle, personTurrets]|= Syntax
|p21 = [vehicle, includePersonTurrets]: [[Array]]  
|p21 = [vehicle, personTurrets]: [[Array]]  
|p22 = vehicle: [[Object]]
|p22 = vehicle: [[Object]]
|p23 = includePersonTurrets: [[Boolean]] - [[true]] to include person (cargo) turrets as well
|p23 = personTurrets: [[Boolean]]
* [[true]] - include person (cargo) FFV turrets
* [[false]] - exclude person (cargo) FFV turrets
|r2= [[Array]]  |= Return value
|r2= [[Array]]  |= Return value
____________________________________________________________________________________________
____________________________________________________________________________________________


|x1 = <code>_turretPaths = [[allTurrets]] MH_9; //<nowiki>[</nowiki>[0]]
|x1 = <code>_turretPaths = [[allTurrets]] SlammerUP; //<nowiki>[</nowiki>[0],[0,0]]
_turretPaths = [[allTurrets]] [MH_9, [[true]]]; //[[0],[1],[2],[3],[4]]
_turretPaths = [[allTurrets]] [SlammerUP, [[true]]]; //<nowiki>[</nowiki>[0],[0,0]] <- Commander turret is also FFV turret
_turretPaths = [[allTurrets]] [MH_9, [[false]]]; //<nowiki>[</nowiki>[0]]</code> |= Example1
_turretPaths = [[allTurrets]] [SlammerUP, [[false]]]; //<nowiki>[</nowiki>[0]]</code> |= Example1
 
 
|x2 = Return FFV turrets only: <code>_FFVTurrets = [[allTurrets]] [tank, [[true]]] - [[allTurrets]] [tank, [[false]]]; </code> |= Example2


| [[moveInTurret]], [[enablePersonTurret]], [[assignedVehicleRole]], [[fullCrew]] |= See also
| [[moveInTurret]], [[enablePersonTurret]], [[assignedVehicleRole]], [[fullCrew]] |= See also

Revision as of 17:54, 21 July 2015

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, personTurrets]
Parameters:
[vehicle, personTurrets]: Array
vehicle: Object
personTurrets: Boolean
  • true - include person (cargo) FFV turrets
  • false - exclude person (cargo) FFV turrets
Return Value:
Array

Examples

Example 1:
_turretPaths = allTurrets SlammerUP; //[[0],[0,0]] _turretPaths = allTurrets [SlammerUP, true]; //[[0],[0,0]] <- Commander turret is also FFV turret _turretPaths = allTurrets [SlammerUP, false]; //[[0]]
Example 2:
Return FFV turrets only: _FFVTurrets = allTurrets [tank, true] - allTurrets [tank, false];

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