moveInAny: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " <h3 style="display:none">Notes</h3> <dl class="command_description"> <!-- Note Section BEGIN --> <!-- Note Section END --> </dl> " to "")
m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments( \("local" or "global"\))?|Effects|Multiplayer Effects( \("local" or "global"\))?|Multiplayer Exe...)
Line 1: Line 1:
{{Command|Comments=
{{Command


| arma3 |= Game name
| arma3 |= Game name


|1.18|Game version=
|1.18


|arg= global |Multiplayer Arguments=
|arg= global


|eff= global |Multiplayer Effects=
|eff= global


|gr1= Unit Control |GROUP1=
|gr1= Unit Control


| Moves unit to the first available seat in a vehicle. The order of priorities is the same order used in squad command when you order subordinates to get in vehicle to any position and is the same order used in Zeus when you drag units to a vehicle. <br><br>Seat assignment seems to use the following priority logic:  
| Moves unit to the first available seat in a vehicle. The order of priorities is the same order used in squad command when you order subordinates to get in vehicle to any position and is the same order used in Zeus when you drag units to a vehicle. <br><br>Seat assignment seems to use the following priority logic:  
driver ([[moveInDriver]]) -> commander turret ([[moveInCommander]]) -> gunner turret ([[moveInGunner]]) -> remaining turrets ([[moveInTurret]]) -> cargo ([[moveInCargo]]).<br><br>
driver ([[moveInDriver]]) -> commander turret ([[moveInCommander]]) -> gunner turret ([[moveInGunner]]) -> remaining turrets ([[moveInTurret]]) -> cargo ([[moveInCargo]]).<br><br>
'''NOTE''': This command will move player into the [[locked]] vehicle or seat just as well. |DESCRIPTION=
'''NOTE''': This command will move player into the [[locked]] vehicle or seat just as well.


| unit '''moveInAny''' vehicle |SYNTAX=
| unit '''moveInAny''' vehicle


|p1= unit: [[Object]] |PARAMETER1=
|p1= unit: [[Object]]
|p2= vehicle: [[Object]] |PARAMETER2=
|p2= vehicle: [[Object]]


| [[Boolean]] - [[true]] on success, [[false]] on failure |RETURNVALUE=
| [[Boolean]] - [[true]] on success, [[false]] on failure
   
   
|x1= <code>[[player]] [[moveInAny]] tank;</code> |EXAMPLE1=
|x1= <code>[[player]] [[moveInAny]] tank;</code>


| [[moveInDriver]], [[moveInCommander]], [[moveInGunner]], [[moveInTurret]], [[moveInCargo]] |SEEALSO=
| [[moveInDriver]], [[moveInCommander]], [[moveInGunner]], [[moveInTurret]], [[moveInCargo]]


}}
}}

Revision as of 02:04, 18 January 2021

Hover & click on the images for description

Description

Description:
Moves unit to the first available seat in a vehicle. The order of priorities is the same order used in squad command when you order subordinates to get in vehicle to any position and is the same order used in Zeus when you drag units to a vehicle.

Seat assignment seems to use the following priority logic: driver (moveInDriver) -> commander turret (moveInCommander) -> gunner turret (moveInGunner) -> remaining turrets (moveInTurret) -> cargo (moveInCargo).

NOTE: This command will move player into the locked vehicle or seat just as well.
Groups:
Unit Control

Syntax

Syntax:
unit moveInAny vehicle
Parameters:
unit: Object
vehicle: Object
Return Value:
Boolean - true on success, false on failure

Examples

Example 1:
player moveInAny tank;

Additional Information

See also:
moveInDrivermoveInCommandermoveInGunnermoveInTurretmoveInCargo

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

Bottom Section