Arma 3 Scripting

moveInDriver

  • Local argument
  • Global effect
  • Arma 3 v0.50
  • First in Operation Flashpoint v1.00

Command · Markdown · JSON · original wiki page

Description

Moves soldier into vehicle driver position (immediate, no animation).

Note

See AI Group Vehicle Management for more information.

Important

If the unit is already in a vehicle, nothing will happen unless moveOut (since Arma 2) is used first to move the unit out of their vehicle (see #Example 2).

Syntax

unit moveInDriver vehicle

Parameters:

Returns: Nothing

Examples

Example 1

_soldierOne moveInDriver _tankOne;

Example 2

if (not isNull vehicle player) then
{
    moveOut player;
};

player moveInDriver _myTruck;

Multiplayer

unit must be local, while the vehicle's locality does not matter.

See also

moveInAny · moveInCargo · moveInCommander · moveInGunner · moveInTurret · assignAsCargo · assignAsCommander · assignAsDriver · assignAsGunner · isTurnedOut

Community notes

Ceeeb

In OFP v1.96, the moveIn commands will not trigger an associated getIn event. To ensure the getIn event is fired, use the "getIn Driver" action command.