Arma 3 Scripting

setVehicleLock

  • Local argument
  • Global effect
  • Arma 3 v0.50
  • First in Operation Flashpoint: Elite v1.00

Command · Markdown · JSON · original wiki page

Description

Sets vehicle lock. Possible values:

Syntax

vehicleName setVehicleLock lockState

Parameters:

Returns: Nothing

Examples

Example 1

_veh1 setVehicleLock "LOCKED";

See also

lock · locked · lockDriver · lockCargo · lockTurret

Community notes

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"

Killzone_Kid

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.