Multiuser-Multipurpose Door with Lockpick Skill - Build Jam submission

Game : e3qkc64a
Contributors : Daystiny
Package Name : Multiuser-Multipurpose Door with Lockpick Skill
Description : A secret facility needs a reliable door. A secret agent needs a means to break into a secret facility. - This package can make both sides of the lock happy by providing a door trigger that can turn any door into something special, opening at nights or days, opening only for the owner or with a code. The package also comes with a lockpick skill to overcome any lock mechanism if needed and a utility script to determine the time of day.
Category : SCRIPT

Install the package from community tab. Optionally install my Controller-Keyboard package if you want to use the option to secure doors with codes.

Add the doorTrigger template to any already existing door on your map and configure it using the editor.
Select the lockType to determine how the door opens:

  • “open”: never locked
  • “shop”: locked during night
  • “bar”: locked during day
  • “plot”: locked when owner isn’t online (for tycoons)
  • “code”: locked until proper code entered
  • “item”: locked until proper item held, e.g. a key
  • “owner”: locked for everyone but owner (for tycoons)

Set the pickDifficulty to determine how hard it is to lock pick it. The input is in%. 0 or 1 is the easiest, 100 is the hardest. 101 means, the door can’t be lock picked.

If you want to use the time based lock options, add the periodOfDayScript to any entity in your game, e.g. the terrain.

1 Like