Explosion Created 17 years ago2007-04-10 22:00:28 UTC by Kman8675 Kman8675

Created 17 years ago2007-04-10 22:00:28 UTC by Kman8675 Kman8675

Posted 17 years ago2007-04-10 22:00:28 UTC Post #218650
What im trying to do is have my dynamite box trigger an explosion which then will break the glass. I placed an env_explosion where I wanted the explosion to happen. Then tied the box to func_button and set the target to my explosion it worked but didn't break the glass. So basically I dont want the glass to break when people shoot it only when it is triggered by the tnt box.
Posted 17 years ago2007-04-10 22:18:57 UTC Post #218652
You can use a multi_manager to set all this up. Just have the func_button trigger the multi_manager, and have the multi_manager timed so that it triggers the glass and the explosion at the same time. Triggering the glass will destroy it. You can also check a flag on the glass so it won't break unless it's triggered.
Posted 17 years ago2007-04-11 03:59:45 UTC Post #218678
There's no need for a multimanager, just name the glass and the env_explosion the same, and let it trigger.

env_explosion
name: explo_glass

func_breakable (glass)
name: explo_glass

func_breakable (Dynamite)
target: explo_glass

Easy as pie.
Posted 17 years ago2007-04-11 05:12:19 UTC Post #218680
Yeah, I guess I forgot about that. With a multi_manager though, you can set the glass to break just slightly after the explosion, which would be far more realistic. Just a thought.

I swear, I'm no help lately. :P
Posted 17 years ago2007-04-12 19:16:59 UTC Post #218828
Ok, thanks I got it to work. But, I set the delay before reset to -1, but I want the button to work again when a new round starts.
Posted 17 years ago2007-04-12 23:09:13 UTC Post #218853
So pretty much what happens is when I test out the map in new game, I press the button everything works fine. Then when a new round starts the button doesnt work because I set it to -1. But also if I set it to say like 3 or 4 which resets it in 3 seconds. What I want is it to only explode once every round. Then restart itself every round to be blown up again.
Posted 17 years ago2007-04-12 23:11:17 UTC Post #218854
There's some hack with doors that I think might help you, but I can't tell you about it. Never tried it myself, never needed to.
Posted 17 years ago2007-04-12 23:49:00 UTC Post #218858
espen180 I saw your tutorial on how to reset entities but could you help me with it? I want only my button to work once a round. So I would make a muti_manager and name it reset_manager then in the same muti_manager I enter another key naming it the same as my button and put the value as 1?
Posted 17 years ago2007-04-13 07:17:15 UTC Post #218879
Yeah changing targets to nothing is often a good way to disable buttons. But don't use it for doors and trigger_once. If you don't know how to use trigger_changetarget check my tutorial!
You must be logged in to post a response.