allTurrets: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
mNo edit summary
Line 19: Line 19:
|p22 = vehicle: [[Object]]
|p22 = vehicle: [[Object]]
|p23 = personTurrets: [[Boolean]]
|p23 = personTurrets: [[Boolean]]
* [[true]] - include person (cargo) FFV turrets
* [[true]] - include person (cargo) FFV (firing from vehicle) turrets
* [[false]] - exclude person (cargo) FFV turrets
* [[false]] - exclude person (cargo) FFV turrets
|r2= [[Array]]  |= Return value
|r2= [[Array]]  |= Return value
Line 46: Line 46:
<dl class="command_description">
<dl class="command_description">
<dd class="notedate">Posted on April 13, 2016 - 19:13 (UTC)</dd>
<dd class="notedate">Posted on April 13, 2016 - 19:13 (UTC)</dd>
<dt class="note">[[User:AgentRevolution|AgentRevolution]]</dt>
<dt class="note">[[User:AgentRevolution|AgentRev]]</dt>
<dd class="note">
<dd class="note">
The first syntax (vehicle only without boolean) will include commander turrets like in the example, but does not include actual FFV turrets like offroad back seats, as it should be.
The first syntax (vehicle only without boolean) will include commander turrets like in the example, but does not include actual FFV turrets like offroad back seats, as it should be.

Revision as of 21:14, 13 April 2016

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 (firing from vehicle) 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

Posted on April 13, 2016 - 19:13 (UTC)
AgentRev
The first syntax (vehicle only without boolean) will include commander turrets like in the example, but does not include actual FFV turrets like offroad back seats, as it should be.