aebian

Who am I?

Musician, Programmer, Linux Geek and what not.  more...


The Categories



Stuff

Arma CodeList
GitHub Projects
Media (Gallery)
Privacy Policy
My Hardware
My Wishlist


December 21st at 3:56pm
Report a website issue
For best viewing experience use a 4k screen.

nethavn Logo

❬ Back to Blog


The CodeLock Script [Arma 3]


Lock and Unlock of doors in Arma is now fancier then ever.

Hello folks,

Ever wanted to secure rooms with an access code in Arma like in those CIA movies? Now you can.
I have made a script that will create a lock system for you to use.

Everything is dynamic (means you can use it anywhere and with any object). The result is this:

A3_CodeLock.png

You can unlock the door by entering the correct key code on the keyPad and then press Enter. If the door is open and a code is already saved, a click on Lock will close and lock the door.

Download: https://groupfiles.nethavn.group/d/7fb60bb3dd4a444db7f5/files/?p=%2FArma%2FCodeLock.zip

When you have downloaded the file, copy the folder itsAebian to your mission folder and open up the NH_CodeLock.sqf and check the description of it.
You need to have two files in your mission root for my script to work:

  • description.ext (code for desc goes there)
  • initServer.sqf (code for init goes there)

On the misison side (in-game) you need a house and a keypad object. In the description in the SQF the keyPad object is named CellTab_01 and the house is named CellHouse_01.
Make sure the keyPad object is no house and has propper space between house and itself as the addAction otherwise won't fire up.

A Video will follow soon.

If you have questions just leave them below and I will try to answer them. That's it, your done.


Over and Out,

Aebian