how to do that door open every 15 secs


(DeSanchez) #1

How to do that door open every 15 secs? Or anyelese time. Couldnt find tutorial. I can do doors :slight_smile:


(walk_on_sky) #2

try to write a script in which you use the command “alertentity” with your door entity… then you take the command “wait 15000” and then you let the script trigger itself again…

walk_on_sky


(BowlOfCereal) #3

1make a trigger multiple that covers everysingle part of your map (so people are always triggering it)
2then give it a wait of 15
3then target the door u want and voila


(RayBan) #4

i would probably let the ingame entities handle the control of it, and im assuming
you want the door unusable ( locked ) but opening every 15 seconds.

so i would setup a func_timer at 14 seconds, start_on enabled as spawnflags… have that
target 2 target_delays… one delay set at 1 second and targets the door to open it, the
other target_delay would wait 5 seconds, then target a target_lock with a key set at -1
which then targets the door to lock it before it closes.

that func_timer would also have to target a target_lock with a key set at 0, which then targets
the door to unlock it.

so when the func_timer goes off it should fire the two delays and unlock the door at the same time, 1 second later the door will open ( via the delay ) 4 seconds later it will lock again
probably while its in closing mode. then 9 seconds later it should repeat the process over and over.

once the door has a targetname it should be locked, so you need to do something like
this to make it unlock before you open it, and lock again.

now, if you wanted the door unlocked to begin with but open every 15 seconds, just
make a func_time at 15 seconds and target the door, make shure the door has key 0 set.