moveInAny: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[[Cc]ategory:[ _]?Arma[ _]3:[ _]([^|]*)[ _]?\|.*\]\]" to "{{GameCategory|arma3|$1}}")
m (Text replacement - "{{Feature|Important|" to "{{Feature|important|")
 
(28 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Command|Comments=
{{RV|type=command
____________________________________________________________________________________________


| arma3 |= Game name
|game1= arma3
|version1= 1.18


|1.18|Game version=
|arg= global


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


|eff= global |Multiplayer Effects=
|gr1= Unit Control


|gr1= Unit Control |GROUP1=
|descr= Moves unit to the first available seat in the specified vehicle.
____________________________________________________________________________________________


| 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:  
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>
driver ([[moveInDriver]]) -> commander turret ([[moveInCommander]]) -> gunner turret ([[moveInGunner]]) -> remaining turrets ([[moveInTurret]]) -> cargo ([[moveInCargo]]).<br><br>
Seat assignment seems to use the following priority logic:<br>
'''NOTE''': This command will move player into the [[locked]] vehicle or seat just as well. |DESCRIPTION=
driver ([[moveInDriver]]) &rarr; commander ([[moveInCommander]]) &rarr; gunner ([[moveInGunner]]) &rarr; turrets ([[moveInTurret]]) &rarr; cargo ([[moveInCargo]]).
____________________________________________________________________________________________
{{Feature|important|If the unit is already in a vehicle, nothing will happen. You should use [[moveOut]] to move the unit out of his vehicle before trying to move him into a new (or same) vehicle.}}
{{Feature|informative|This command will move player into the [[locked]] vehicle or seat just as well.}}


| unit '''moveInAny''' vehicle |SYNTAX=
|s1= unit [[moveInAny]] vehicle


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


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


| [[moveInDriver]], [[moveInCommander]], [[moveInGunner]], [[moveInTurret]], [[moveInCargo]] |SEEALSO=
|r1= [[Boolean]] - [[true]] on success, [[false]] on failure


|x1= <sqf>player moveInAny tank;</sqf>
|seealso= [[moveInDriver]] [[moveInCommander]] [[moveInGunner]] [[moveInTurret]] [[moveInCargo]]
}}
}}
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style="display:none">Bottom Section</h3>
{{GameCategory|arma3|New_Scripting_Commands_List}}
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]

Latest revision as of 00:24, 2 February 2024

Hover & click on the images for description

Description

Description:
Moves unit to the first available seat in the specified 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 (moveInCommander) → gunner (moveInGunner) → turrets (moveInTurret) → cargo (moveInCargo).
If the unit is already in a vehicle, nothing will happen. You should use moveOut to move the unit out of his vehicle before trying to move him into a new (or same) vehicle.
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:
moveInDriver moveInCommander moveInGunner moveInTurret moveInCargo

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