lockCargo

From Bohemia Interactive Community
Jump to: navigation, search
Introduced with Arma 2 version 1.00
  Arguments of this scripting command have to be local to the client the command is executed onEffects of this scripting command are broadcasted over the network and happen on every computer in the network

Click on the images for descriptions

Introduced in

Game:
Arma 2
Version:
1.00

Description

Description:
Lock all cargo positions of a vehicle or lock by index. This command must be executed where vehicle is local.

Syntax

Syntax:
vehicle lockCargo lock
Parameters:
vehicle: Object
lock: Boolean
Return Value:
Nothing

Alternative Syntax

Syntax:
vehicle lockCargo [index, lock]
Parameters:
vehicle: Object
[index, lock]: Array
index: Number
lock: Boolean
Return Value:
Nothing

Examples

Example 1:
vehicleName lockCargo true;
Example 2:
vehicleName lockCargo [0, true];

Additional Information

Multiplayer:
-
See also:
locksetVehicleLocklockDriverlockedCargolockTurret

Notes

Only post proven facts here. Report bugs on the feedback tracker. Use the talk page or the forums for discussions.
Add New Note | How To

Notes

Bottom Section