Arma 3 Scripting

setUnloadInCombat

  • Local argument
  • Global effect
  • Arma 3 v1.36

Command · Markdown · JSON · 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