Trigger, Once too many!

If you're looking for mapping help or you reckon you're a mapping guru, post your questions / solutions here

Moderator: Moderators

Post Reply
ButtChew
Sergeant
Posts: 54
Joined: Sat Feb 08, 2003 9:19 am

Trigger, Once too many!

Post 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.
Image

www.EAKFclan.com
Go ahead and laugh, you'll just die with a smile.
Angex
Major
Posts: 293
Joined: Mon Dec 30, 2002 1:23 pm
Contact:

Post 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
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

$trigger nottriggerable 8)
Image
ButtChew
Sergeant
Posts: 54
Joined: Sat Feb 08, 2003 9:19 am

Post by ButtChew »

I add that into my map.scr?

or as a key/variable on my original trigger?
Image

www.EAKFclan.com
Go ahead and laugh, you'll just die with a smile.
Angex
Major
Posts: 293
Joined: Mon Dec 30, 2002 1:23 pm
Contact:

Post by Angex »

[me makes a not of correct command]

Place that in your script.
ButtChew
Sergeant
Posts: 54
Joined: Sat Feb 08, 2003 9:19 am

Post 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?
Image

www.EAKFclan.com
Go ahead and laugh, you'll just die with a smile.
TheShiznaeSpe
Major
Posts: 304
Joined: Wed Feb 05, 2003 11:45 pm
Location: US
Contact:

Post 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
Post Reply