Timed doors

  • Please make sure you are familiar with the forum rules. You can find them here: https://forums.tripwireinteractive.com/index.php?threads/forum-rules.2334636/

Criss

FNG / Fresh Meat
Dec 30, 2009
21
0
0
I've been trying to make doors automatically close after 5 seconds in the Bunker map I've been working on, but I can't get it to work.

I first tried to set the InitialState of the movers to TriggerOpenTimed instead of TriggerToggle, but that prevents players from manually closing them, so that's a no go.

Then I tried to have the Mover Events call a toggled TimedTrigger through OpeningEvent and ClosingEvent that would trigger the KFUseTrigger (or the movers themselves), and that wouldn't work.

So then I tried a scripted trigger that would wait for the event that opens the movers, then waitfortimer 5 seconds and retrigger either the movers or KFUseTrigger, and that wouldn't work either.

I can't figure out why that wouldn't work. Does anyone know of a method to make timed doors work properly?
 

Criss

FNG / Fresh Meat
Dec 30, 2009
21
0
0
That only works if the InitialState is set to TriggerOpenTimed, but that prevents players from closing doors or reopening while they're closing.
 

YoYoBatty

FNG / Fresh Meat
Dec 17, 2009
3,459
2,502
0
Canada
KFDoorMovers can only be trigged by KFUseTriggers and KFUseTriggers can only trigger KFDoorMovers, according to a bunch of tests I've done. Try using a regular mover instead of a KFDoorMover.
 

Criss

FNG / Fresh Meat
Dec 30, 2009
21
0
0
I thought I had it, but it only works when the player opens the door.

Here's how to set it up like I have so far:
Spoiler!



You're right YoYoBatty. Somehow, the KFDoorMovers can't be triggered by anything other than a KFUseTrigger if the doors were opened by zeds. I guess that, ideally, it would be best to make a class with KFUseTrigger as parent that has the timer functionality, but I don't have the coding knowledge to do that. Can anyone help?
 
Last edited:

YoYoBatty

FNG / Fresh Meat
Dec 17, 2009
3,459
2,502
0
Canada
Although I am very good at programming and all I'm not sure if I could do this, but I will give it a shot anyways :)
 

Criss

FNG / Fresh Meat
Dec 30, 2009
21
0
0
If you could somehow get this to work I would be SUPER grateful. :D

A Goldeneye map wouldn't feel like Goldeneye without auto-closing doors... :(