Re: Too complicated for a title (to do with triggers)
Posted by **Dedi** on
Fri Sep 3rd 2010 at 4:20am
284 posts
39 snarkmarks
Registered:
Dec 21st 2004
Location: Melbourne, Australia
Wow. I can't even begin to think how I'm going to explain this. I've been playing around with it for an hour and I'm almost there, but now I need something that Hammer may not have, but I'll ask you guys before I try to think of something else.
Ok this is the scenario:
I'm making a fun little map for 2-3 players, and this morning while I was riding my bike, I got a splendid little idea. I wanted to make spawn points where a player may choose to play with a selection of weapons. I'm planning to balance it out. Say, a shotgun and a 357 in one booth, an RPG and a crossbow in another etc. Now I made this by making a door which closes instantly as you enter the booth with weapons, so that those weapons are the only ones you may choose. After you leave the booth, the trigger reopens the door for the next person that spawns.
All the explanations aside, I'm going to try and get down to exactly what my problem is. If I use a trigger_once, it cannot be reset, so if I trigger the door once to close, it cannot be done again. If I use a trigger multiple, the door will open and close according to my triggers, but having looked around the properties of the trigger, there is only a "delay before reset". Now I'm wondering if it is possible to have another trigger which triggers the trigger to reset, so that when I leave the area it can be reset, rather than automatically resetting itself after a given time, making it possible to wait inside.
If this stuff didn't make any sense, I can fully understand, my brain almost melted before I figured out how to word this.. ok ok, let me try to simplify it down to the exact problem I need fixed: What I want is a trigger that resets another trigger. Can that be done?
Thanks gents.
Re: Too complicated for a title (to do with triggers)
Posted by **Dedi** on
Fri Sep 3rd 2010 at 6:39am
284 posts
39 snarkmarks
Registered:
Dec 21st 2004
Location: Melbourne, Australia
Heh, yeah that's exactly what I did, but the problem lies with the resetting. I can't set the same trigger to do two things. If there's a way to set it to do two things, I'd have the problem solved.
And also with a trigger multiple, it seems like it can only be reset with a time delay, so just staying in the booth would make it reset within some time frame and reopen the door. So you see my problem. It would be good if I could set the door to reset a trigger once it has been opened/closed. Can that be done I wonder?
Re: Too complicated for a title (to do with triggers)
Posted by DrLambda on
Fri Sep 3rd 2010 at 9:46pm
4 posts
20 snarkmarks
Registered:
Sep 3rd 2008
Occupation: Student
Location: Koblenz, Germany
As far as i remember, there is an option for func_door which says "door stays open" or similar. If i remember correctly, you can still trigger doors with that option. So the easiest solution would be to put a trigger triggering said door into the spawn zone and another one at the exit of the booth.
Re: Too complicated for a title (to do with triggers)
Posted by **Dedi** on
Sun Sep 12th 2010 at 12:16am
Posted
2010-09-12 12:16am
284 posts
39 snarkmarks
Registered:
Dec 21st 2004
Location: Melbourne, Australia
Thanks for all the assistance guys. Hmm I've figured out the best solution to be a door that opens, and then a fire that blows from the ceiling, before the weapons re-spawn, that way nobody can be in there while it's re-spawning, and time delays work perfectly.
...Only problem I found was, I'm very rusty with the entities, and have no idea where to start looking for a fire, with the sound and all. I thought there'd be an env_fire but there isn't. I might start a new thread officially asking for help making fire.
In any case, problem mostly solved. Thanks for all the suggestions gents!
Re: Too complicated for a title (to do with triggers)
Posted by Orpheus on
Sun Sep 19th 2010 at 4:29pm
Orpheus
member
13860 posts
2024 snarkmarks
Registered:
Aug 26th 2001
Occupation: Long Haul Trucking
Location: Long Oklahoma - USA
you guys really need to play Gollums maps. He will teach you a few things about entity trickery. He actally needed the Spirit update to be invented to even complete his last Masterpiece.
A true Master that Gollum.
The best things in life, aren't things.
Re: Too complicated for a title (to do with triggers)
Posted by Dagguh on
Wed Dec 1st 2010 at 12:45pm
Posted
2010-12-01 12:45pm
8 posts
1 snarkmarks
Registered:
Jul 25th 2008
Just a quick thought: wouldn't trigger_relay do the trick?