Tetzlaff@Posted: Fri Jun 29, 2012 3:38 pm :
Simple setup, but for some reason I can't get it working.

What I want to achieve:

There is a locked door that unlocks after the player passes a trigger. Monsters come out, side area becomes accessible. Door panel has to stay in opened state forever after door was unlocked.
I's basicly just a typical monster closet with some additional rooms behind it.

This is what I tried:

Made a door:

no_touch 1
locked 1
wait -1 (so the door panel would stay open after unlocking)

Made a trigger_once. Made a target_lock. Connected trigger_once with target_lock, then connected target_lock with the door.

In game, nothing happens when I pass through the trigger. What am I doing wrong?

I tried applying "locked" "0" or "1" to the target_lock entity, but that doesn't help.



Sikkpin@Posted: Fri Jun 29, 2012 3:47 pm :
Try targeting the door with the trigger instead of through the target_lock.



Tetzlaff@Posted: Sun Jul 01, 2012 1:02 pm :
Thanks Sikkpin! That worked.

What was the mistake I made with the target_lock? Just curious.



Sikkpin@Posted: Mon Jul 02, 2012 1:33 am :
I don't know. target_lock is Quake 4 specific so someone who's more familiar with Quake 4 editing would have to tell you. Or check Raven's maps and see if and how they used them.