allTurrets: Difference between revisions
Jump to navigation
Jump to search
m (1.33 doesn't exist in stable) |
Killzone Kid (talk | contribs) (updated) |
||
Line 15: | Line 15: | ||
| [[Array]] |= Return value |= Return value | | [[Array]] |= Return value |= Return value | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|s2='''allTurrets''' [vehicle, | |s2='''allTurrets''' [vehicle, personTurrets]|= Syntax | ||
|p21 = [vehicle, | |p21 = [vehicle, personTurrets]: [[Array]] | ||
|p22 = vehicle: [[Object]] | |p22 = vehicle: [[Object]] | ||
|p23 = | |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]] | |x1 = <code>_turretPaths = [[allTurrets]] SlammerUP; //<nowiki>[</nowiki>[0],[0,0]] | ||
_turretPaths = [[allTurrets]] [ | _turretPaths = [[allTurrets]] [SlammerUP, [[true]]]; //<nowiki>[</nowiki>[0],[0,0]] <- Commander turret is also FFV turret | ||
_turretPaths = [[allTurrets]] [ | _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
Description
- Description:
- Returns array of available turret paths.
- Groups:
- Uncategorised
Syntax
Alternative Syntax
- Syntax:
- allTurrets [vehicle, personTurrets]
- Parameters:
- [vehicle, personTurrets]: Array
- vehicle: Object
- personTurrets: Boolean
- 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
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