Arma 3 Scripting

Command in Unit Control

setUnloadInCombat

Also available as Markdown and JSON, or read the original wiki page.

Description

Sets whether or not cargo or turret units should get out of vehicle when in combat. If true, vehicle will stop and units will dismount. Vehicle must be local. The command resets last time unit had reacted to an enemy as well as forcing orderGetIn false if canUnloadInCombat is permitted by config

Syntax

vehicle setUnloadInCombat [allowCargo, allowTurrets]

Parameters:

Returns: Nothing

Examples

Example 1

_veh setUnloadInCombat [true, false];

See also

getUnloadInCombat · canUnloadInCombat · allowCrewInImmobile · isAllowedCrewInImmobile