Arma 3 Scripting

Command in Object Manipulation

lockCargo

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

Description

Lock all cargo positions of a vehicle or lock by index. This command will remove user "get in" action (not get out) but will also stop player getting into vehicle via script commands (e.g moveInCargo) unlike lock command.

Syntax

Syntax 1

vehicle lockCargo lock

Parameters:

Returns: Nothing

Syntax 2

vehicle lockCargo [index, lock]

Parameters:

Returns: Nothing

Examples

Example 1

vehicleName lockCargo true;

Example 2

vehicleName lockCargo [0, true];

See also

lock · setVehicleLock · lockDriver · lockedCargo · lockTurret