AgentRev
In Arma 3:
setVehicleLock "UNLOCKED" = same as "lock 0"
setVehicleLock "DEFAULT" = same as "lock 1"
setVehicleLock "LOCKED" = same as "lock 2"
setVehicleLock "LOCKEDPLAYER" = same as "lock 3"
Results appear below as you type; use the arrow keys to move through them.
Command · Markdown · JSON · original wiki page
Sets vehicle lock. Possible values:
vehicleName setVehicleLock lockState
Parameters:
Returns: Nothing
_veh1 setVehicleLock "LOCKED";
lock · locked · lockDriver · lockCargo · lockTurret
In Arma 3:
setVehicleLock "UNLOCKED" = same as "lock 0"
setVehicleLock "DEFAULT" = same as "lock 1"
setVehicleLock "LOCKED" = same as "lock 2"
setVehicleLock "LOCKEDPLAYER" = same as "lock 3"
DEFAULT lock is default vehicle lock when vehicle placed in editor. If player is in a group of AIs and not the leader, he will not be able to enter this vehicle as he will not have GetIn action for this vehicle.