moveInDriver: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "<code>([a-zA-Z0-9_]+) +\[\[([a-zA-Z0-9_]+)\]\] +([a-zA-Z0-9_]+);?<\/code>" to "<sqf>$1 $2 $3;</sqf>")
(use moveOut before moveIn)
Line 30: Line 30:
|descr= Moves soldier into vehicle driver position (immediate, no animation).
|descr= Moves soldier into vehicle driver position (immediate, no animation).
{{Feature|informative|See [[AI Group Vehicle Management]] for more information.}}
{{Feature|informative|See [[AI Group Vehicle Management]] for more information.}}
{{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.}}


|mp= {{Feature|important|''unit'' must be [[Multiplayer Scripting#Locality|local]], while the vehicle's locality does not matter.}}
|mp= {{Feature|important|''unit'' must be [[Multiplayer Scripting#Locality|local]], while the vehicle's locality does not matter.}}

Revision as of 18:50, 26 February 2023

Hover & click on the images for description

Description

Description:
Moves soldier into vehicle driver position (immediate, no animation).
See AI Group Vehicle Management for more information.
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.
Multiplayer:
unit must be local, while the vehicle's locality does not matter.
Groups:
Unit Control

Syntax

Syntax:
unit moveInDriver vehicle
Parameters:
unit: Object
vehicle: Object
Return Value:
Nothing

Examples

Example 1:
_soldierOne moveInDriver _tankOne;

Additional Information

See also:
moveInAny moveInCargo moveInCommander moveInGunner moveInTurret assignAsCargo assignAsCommander assignAsDriver assignAsGunner isTurnedOut

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
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.