Making a Key card Accessible Door?

I am trying to make a door that when you put a gold key card in it will unlock the door for 5 seconds then it will shut the door.

Also by door I mean a Barrier.
If there are similar ways it would be helpful.

1 Like

Vending machine(hidden: cost 1 keycard)
When purchased → Hide Barrier
when purchased → trigger a trigger with five second delay
when triggered → activate barrier
when triggered → grant 1 gold keycard

1 Like

That doesn’t work. He’s asking for when you HAVE the keycard, not when you buy it

In that case…
When button pressed → Item Checker check for “Gold Keycard”
If you have the gold keycard → Deactiavte barrier

1 Like

or
use a zone to open barrier (when out of zone reactivate barrier)
When in zone → checker,
Check passes → deactivate,

When exit zone → activate barrier

you don’t buy it. the vending machine’s cost is 1 gold key card, when purchased it opens barrier

Use this setup:


Vending Machine:


Counter:
![Screenshot 2025-02-12 11.10.40 AM|465x315]
(upload://h41UerzTRwJZQjZUNyawFpAHWuc.png)

2 Likes

What about time, and giving key card back

Place a zone or button
Step 2: Place a “checker” and wire it to your zone or button
Step 3: Set the settings in the checker to [(object) greater than 0]
Step 4: Place a barrier in the doorway you want the player to access.
Step 5: Wire the checker to the barrier
Step 6: Change the settings in the wire to [(player Pushes button / enters zone) - (Deactivate barrier)]

the last screen shot isnt showing up

  1. Use “Staring Inventory,” in “Item to Grant”, put Key card (then choose the color of the key card you prefer).
  2. Add a barrier (or a door)
  3. Use a trigger, in “Max Trigger”, type 1.
  4. Add Item Granter, in “Item to Grant”, put the key card you put on “Starting Inventory” Device, on “Amount to Grant”, type -1.
  5. Connect to Trigger to the “Item to Grant” with a wire, modify the wire to: When it’s triggered —> Grant Item. It says grant but you’re actually removing the item from the player.
  6. The trigger you used connects to the barrier (door), modify the wire to: When it’s triggered —> Deactivate Barrier
  7. Add a new trigger, add “5” to “Trigger Delay”. Connect the previous trigger to this new trigger, adjust the wire to:
    When it’s trigger —> Trigger
  8. Lastly, use that new trigger and connect it to the barrier (door). Modify the wire to: When it’s triggered —> Activate Barrier

And Done! Reply to me if you have questions!

1 Like

One is more memory efficient, and that’s the checker method for a measly 55 memory.
You want to know how much the vending machine takes up? 1/10 of %1 memory, about 155 memory.

1 Like

This might be useful at least for someone. :grinning:

1 Like