moveInAny: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\{\{GameCategory\|(arma[0123])\|[ _]?New[ _]Scripting[ _]Commands[ _]List\}\}" to "{{GameCategory|$1|New Scripting Commands}}") |
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
||
Line 1: | Line 1: | ||
{{Command|Comments= | {{Command|Comments= | ||
| arma3 |= Game name | | arma3 |= Game name | ||
Line 11: | Line 10: | ||
|gr1= Unit Control |GROUP1= | |gr1= Unit Control |GROUP1= | ||
| 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. |DESCRIPTION= | ||
| unit '''moveInAny''' vehicle |SYNTAX= | | unit '''moveInAny''' vehicle |SYNTAX= | ||
Line 24: | Line 21: | ||
| [[Boolean]] - [[true]] on success, [[false]] on failure |RETURNVALUE= | | [[Boolean]] - [[true]] on success, [[false]] on failure |RETURNVALUE= | ||
|x1= <code>[[player]] [[moveInAny]] tank;</code> |EXAMPLE1= | |x1= <code>[[player]] [[moveInAny]] tank;</code> |EXAMPLE1= | ||
| [[moveInDriver]], [[moveInCommander]], [[moveInGunner]], [[moveInTurret]], [[moveInCargo]] |SEEALSO= | | [[moveInDriver]], [[moveInCommander]], [[moveInGunner]], [[moveInTurret]], [[moveInCargo]] |SEEALSO= |
Revision as of 01:54, 17 January 2021
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
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