Page 1 of 1

Trigger, Once too many!

Posted: Wed Feb 12, 2003 2:49 am
by ButtChew
Ok ... Im sure there is a very simple answer to this problem.

I have a wall that blows up when shot using a multiple trigger.

I also have a detonator in the room the player can use to blow up the same wall (which has a trigger_use box around it). So they can either blow it up manually, or detonate it.

Problem is that when I blow up the wall manually (hole appears and such) but if I use the detonator (the other trigger) the explosion will go off again but only that second time.

Posted: Wed Feb 12, 2003 12:56 pm
by Angex
You need to disable the un-used trigger, when the other one is used. I think you just add the following in your script. Not sure its the right command but it should say in the g_allclasses:

$triggername disable

Posted: Wed Feb 12, 2003 4:53 pm
by jv_map
$trigger nottriggerable 8)

Posted: Wed Feb 12, 2003 9:29 pm
by ButtChew
I add that into my map.scr?

or as a key/variable on my original trigger?

Posted: Thu Feb 13, 2003 10:40 am
by Angex
[me makes a not of correct command]

Place that in your script.

Posted: Thu Feb 13, 2003 10:24 pm
by ButtChew
I aplogize, I am a noob.

I know adding to script means adding it into the map.scr. I also know i just cant add $trigger nottriggerable

Dont I have to add more than just that one line?

Posted: Thu Feb 13, 2003 10:47 pm
by TheShiznaeSpe
if you have your basic script set up, then just put this in under main:

level waittill spawn

thread disabletrigger
end

disabletrigger:
level waittill $trigger
wait 1
$trigger nottriggerable
end