Trigger_hurt on a timer. CS: Source
Feb 23, 2014 11:19:36 GMT
Post by Chris on Feb 23, 2014 11:19:36 GMT
Hi there,
I have been watching your video tutorials and they are very helpful (3kliksphilip), but I am stuck on this one. I'm creating a CS map, and have a room which is 'contaminated'. When a player enters this room, a siren sounds to alert the other players in the map by way of using a trigger_multiple. Also in this room is a trigger_hurt. At this stage the trigger_hurt is disabled, as it is set to start disabled. However, I have a button topside which a player can press to activate the trigger_hurt in this contaminated room (the idea is that the room has vents and this button activates some kind of damaging toxin into the room). The trigger_hurt activates just as it should, permanently. So I created an output on the trigger_hurt that would disable the trigger_hurt trigger after 10 seconds. This worked well, then I realised that this was only on touch. So the trigger_hurt trigger is activated by the button but stays activated until someone touches the trigger, when it starts a ten second delay before disabling. This is the problem. The idea is that if no-one is in the room, the trigger_hurt should still activate for ten seconds (without anyone touching the trigger) and then deactivate.
What I'd like to have is this. Upon pressing the button topside the trigger_hurt trigger activates, and then expires after 10 seconds so that the room is clear then, regardless of whether anyone is in the room or not (touching the trigger_hurt or not). The button resets after 10 seconds, so that a player can activate this trigger_hurt multiple times.
I'd be grateful for some help on this.
Many Thanks,
-Chris
I have been watching your video tutorials and they are very helpful (3kliksphilip), but I am stuck on this one. I'm creating a CS map, and have a room which is 'contaminated'. When a player enters this room, a siren sounds to alert the other players in the map by way of using a trigger_multiple. Also in this room is a trigger_hurt. At this stage the trigger_hurt is disabled, as it is set to start disabled. However, I have a button topside which a player can press to activate the trigger_hurt in this contaminated room (the idea is that the room has vents and this button activates some kind of damaging toxin into the room). The trigger_hurt activates just as it should, permanently. So I created an output on the trigger_hurt that would disable the trigger_hurt trigger after 10 seconds. This worked well, then I realised that this was only on touch. So the trigger_hurt trigger is activated by the button but stays activated until someone touches the trigger, when it starts a ten second delay before disabling. This is the problem. The idea is that if no-one is in the room, the trigger_hurt should still activate for ten seconds (without anyone touching the trigger) and then deactivate.
What I'd like to have is this. Upon pressing the button topside the trigger_hurt trigger activates, and then expires after 10 seconds so that the room is clear then, regardless of whether anyone is in the room or not (touching the trigger_hurt or not). The button resets after 10 seconds, so that a player can activate this trigger_hurt multiple times.
I'd be grateful for some help on this.
Many Thanks,
-Chris