Light and Sirens on a Blast Door? Created 14 years ago2010-12-13 19:41:50 UTC by Rory84 Rory84

Created 14 years ago2010-12-13 19:41:50 UTC by Rory84 Rory84

Posted 14 years ago2010-12-13 19:41:50 UTC Post #287900
Making an escape/infiltrate map series, so far it's pretty good. You can tell it's amueter and not professional but I think most people here would play it.

The problem is, to add feeling that you're escaping a secure facility, the exit is a double blast door, and the lights and siren activate when it is either a) in motion or b) open.

Right now I set the door's target as "securedooropening1", and it only activates when the door is open. Is there a way to make it activate while the doors are ONLY moving, like in the Half-Life series when you should shoot the buttons and the blast doors would close?
Posted 14 years ago2010-12-13 20:59:11 UTC Post #287904
You would use a multimanager for that, and you would need to know how long it's in motion. So if you have a door that's 128 units tall, and has a movement speed of 16, it would take 8 seconds to open or close.
Assuming it takes 8 seconds, Your entity setup should look like this:

func_button (or whatever activates the door)
Target: securedooropening1

func_door
name: securitydoor

Whatever entities you wish to use for the flashing lights and the siren and such
name: siren

multimanager
name: securedooropening1
securitydoor: 0
siren: 0
siren: 8

When you press the button, it targets the multimanager. The multimanager, in turn, targets both the door and the siren. The door begins to close/open, and the siren turns on. After 8 seconds (the time it takes for the door to open/close), it targets the siren again, turning it off.
Alabastor_Twob Alabastor_Twobformerly TJB
Posted 14 years ago2010-12-13 23:32:32 UTC Post #287913
Thanks, wasn't sure the the entity had a field for it or not. Multimanager was my next goal.

Thanks for the speedy reply.
Posted 14 years ago2010-12-14 01:41:08 UTC Post #287915
Isn't there a 'target on finish' or similar?
Crollo CrolloTrollo
Posted 14 years ago2010-12-14 02:31:47 UTC Post #287916
Yes, fire on close. It will trigger that entity only after it's closed.
You must be logged in to post a response.