Arma 3
Not enough ratings
Universal Code Lock
Data Type: Scenario
Scenario Gameplay: Singleplayer, Multiplayer, Coop
Scenario Map: VR
File Size
0.036 MB
May 27, 2018 @ 7:02pm
1 Change Note ( view )

Subscribe to download
Universal Code Lock

Example mission for demonstration. Tested on Vanilla maps.

Allows you to set a code lock to any door that you placed a tablet next to for your mission.

How To Use:
Simply place down a tablet next to any door you want to use this on and the script takes care of the rest :)

Set Door code
Change Door code
Unlock Door
Lock Door



Bohemia forum linke: updated 5/28/2018

Updated download link to latest version.
Switched to a more reliable way of retrieving the buildings.
Set ability to use both regular tablet and rugged tablet.

To do list:
Pass in default parameters so the user can set it if they want the doors locked/unlocked by default on mission start as well as setting a default code
< >
Sanchez Oct 16, 2019 @ 4:20pm 
the manual download link is broken
Fell Aug 20, 2019 @ 4:51pm 
Will this work during a scenario? (tablet placement)
ClimberBill Jan 3, 2019 @ 1:49am 
@IM SORRY BUFFALO Thank you for the reply I will keep working with it to see if I can get it to work.
IM SORRY BUFFALO  [author] Jan 2, 2019 @ 4:53pm 
@ClimberBill I honestly cannot remember
ClimberBill Jan 2, 2019 @ 5:08am 
@IM SORRY BUFFALO Where would I post the code that you have listed below. Would I put that in one of the sqf's or in the init of the tablet, if it goes in the sqf, what one? Any help would be great.
IM SORRY BUFFALO  [author] Sep 10, 2018 @ 11:18am 
@Rico i was working on a new version of this many months ago(this was just made for someone that was trying have a simple code lock system) that took in multiple parameters such as an initial code, lock/unlock all doors in building or individual doors and so on. unfortionatly that build has not been touched in several months without the plans of finishing it, this is not very popular so i dont have a urge to redo it. however, if you can get the object(tablet) then you could use setVariable to set the code initially like so
_newCode = 1234;
tablet1 setVariable ["theCode", _newCode, true];
tablet1 setVariable ["hasCode", true, true];
if (_newCode == "") then
tablet1 setVariable ["hasCode", false, true];
RicoArma Sep 10, 2018 @ 3:04am 
Hey, Good works!
Tell me, if it possible to put a code before make it in game? If we can Set a door code before start the game? That's possible to put it in somewhere in the sqf?