Tankbuster
Lock prevents AI persons mounting or dismounting vehicles when ordered to do so and players are prevented from doing both too, but AI will still dismount when a vehicle is damaged.
Results appear below as you type; use the arrow keys to move through them.
Command · Markdown · JSON · original wiki page
Lock vehicle (disable mounting / dismounting) for player. This command will remove user get in/get out actions but will not stop player getting into or out of vehicle via script commands (e.g moveInCargo).
Note
Alternative syntax is similar to setVehicleLock but with numbers.
vehicleName lock locked
Parameters:
Returns: Nothing
since arma3 0.50
vehicleName lock lockstate
Parameters:
vehicleName: Object
lockstate: Number - can be one of the following:
0 - Unlocked
1 - Default (player subordinate cannot enter until his leader says so)
2 - Locked
3 - Locked for player
Returns: Nothing
_jeepOne lock true;
heli lock true;
locked heli; // 2
heli lock false;
locked heli; // 0
heli lock 1;
locked heli; // 1
locked · setVehicleLock · lockDriver · lockCargo · lockTurret
Lock prevents AI persons mounting or dismounting vehicles when ordered to do so and players are prevented from doing both too, but AI will still dismount when a vehicle is damaged.
If an AI group (e.g Mechanized Infantry) has its vehicle locked with its crew in it, it will mount or dismount it anyway. But a player in this group won't be able to enter the vehicle.