• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

door system - 3 states

meyson90

New Member
Joined
Nov 29, 2025
Messages
24
Reaction score
3
In my current version of TFS 1.2, doors have two states: locked and unlocked.

I'd like to introduce three states:

1. unlocked

2. locked (without a key)

3. locked (with a key)

How can this be achieved?
 
I'm not sure if I understood your question correctly.
1. unlocked - do nothing nothing
2. locked (without a key) - set door aid with unised aid (no match with any key)
3. locked (with a key) - door and key aid should match
 
Currently, doors that are open - even if you close them without a key - still become "locked" (as if I closed them with a key, even though I didn't lock them with key) - I want doors that are not locked with a key to remain locked but not with a key - so that they can be opened without a key - because if someone locks them without a key, why does someone else have a key to them if they weren't locked with a key
 
Currently, doors that are open - even if you close them without a key - still become "locked" (as if I closed them with a key, even though I didn't lock them with key) - I want doors that are not locked with a key to remain locked but not with a key - so that they can be opened without a key - because if someone locks them without a key, why does someone else have a key to them if they weren't locked with a key
The main question is: have you made sure you're using the right door for your project? We have three basic door types:
  • standard with a handle (opened and closed from "use")
  • flashing door handle or level door (if it is open and you close it from "use", you will no longer be able to open it from "use" - you need a script)
  • special doors, key-operated

If you need help with door scripting, we can try to resolve the issue privately
 
Back
Top