Need An Intelligent Automatic Door.
Ollj
our themepark-stalking nightmare Fade Join Date: 2002-12-12 Member: 10696Members
<div class="IPBDescription">Other forums or tutorials didnt help.</div> I want door that opens automatically (if not already open) if anyone is inside of a field [trigger_multiple] and closes automatically if noone is inside the same field.
Now, do I need a closing- another opening-field and some trigger relays or is there a simpler way?
An example map is better than any long detailed explanation.
Now, do I need a closing- another opening-field and some trigger relays or is there a simpler way?
An example map is better than any long detailed explanation.
Comments
DUH!</b>
Okay that was what I searched, just didn't remember.
btw:
This trigger has a bug if you leave and enter rapidly serveral times AND if "time before leave fires" is bigger than 0
The Bug is; then the trigger behaves vise versa (door closes if inside and opens if outside).
So this is ideal for important doors.
Place the door and set its close delay to anything other than -1, leave 'use only' and 'toggle' flags unchecked.
Draw a block brush that extends either side of the door and convert it to a trigger_presence. Add the door to its 'activation target' property and leave all others blank.
The trigger will open the door and it will then close itself. Running in and out of the trigger like a nutcase has no adverse affects, at least not any I have been able to find.
Checking the 'toggle' flag in the door entity means it can easily get reversed.
Correct me if I'm wrong, I've only been mapping for a week.
What you need is some sort of "trigger_antipresence" or something... sorry I don't know more about mapping.
First off, make a hollow box somewhere off the main map.
Now, place two 'func_buttons' set to be triggered by 1 point of damage, point both of THESE at the door with the 'toggle' flag set. Place them at one end of the box, moving away from the other end of the box and into the wall.
Next, place two shooters of whatever type or style you want at the other end of the box, something that does one bullet, instant impact, and is quiet is best.
Now, place one door with the same targetname as your 'real' door in the middle of the box, blocking the path from one shooter to one button, set up to 'move' between the two paths to block only one path. Make sure it's set to 'toggle' mode, same as the 'real' door. If you're careful, you can make it the same brushwork as the 'real' door to save one entity.
Now you have a very nice and simple 'open' and 'close' trigger by targetting the two shooters. :-)
As a bit of information, this same construction expanded greatly can be used to make combination-locks inside a level that can actually be changed in real-time. :-) But, sadly, Q3A removed this functionality when they removed the 'toggle' flag from doors. I can detail THAT construction, if anyone wants to chew up 30 entities making a door that the Marines can lock out with a combination that the Aliens have to hunt down and find, but the Commander can still open and close at will. :-)
Place the door and set its close delay to anything other than -1, leave 'use only' and 'toggle' flags unchecked.
Draw a block brush that extends either side of the door and convert it to a trigger_presence. Add the door to its 'activation target' property and leave all others blank.
The trigger will open the door and it will then close itself. Running in and out of the trigger like a nutcase has no adverse affects, at least not any I have been able to find.
Checking the 'toggle' flag in the door entity means it can easily get reversed.
Correct me if I'm wrong, I've only been mapping for a week.<!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
how is commander able to operate these doors? ok?