Exploding a func_physbox

Avatar
baca25
342 Posts
Posted Sep 04, 2011
I am having trouble figuring out how to make an explosion to a func_physbox when it breaks. I've tried adjusting the Explosion damage / Explosion Radius, but that doest work. I've tried parenting an env_explosion to the func_physbox, but the evn_explosion doesn't follow the box, and just stays where I created it. I am spawning the physbox from a point_template / env_entity_maker. Any Ideas?
Advertisement
Registered users don’t see ads! Register now!
Avatar
ChickenMobile
2,460 Posts
Posted Sep 04, 2011
Replied 1 hour later
You need to make the explosion be part of the point_template which it is spawning, otherwise it will not parent to the physbox when it spawns.

For example I made a beanie parented to a physbox, you have to put all objects you want spawned at the same time in the point_template.
img

Avatar
baca25
342 Posts
Posted Sep 04, 2011
Replied 1 hour later
ahh thanks, I had tried making the explosion have its own point_template / env_entity_maker, but that didn't work.
Edit
Now i'm actually having a problem where, when the physbox touches anything, it breaks, but it doesn't trigger the explosion. But if I respawn the physbox, before it touches anything, it does trigger the explosion. Weird. It's parented fine, but when the box breaks from touching stuff, it doesn't work.
I feel like the env_explosion is being destroyed when it hits the ground, so it is not triggering. But then that would mean I would have to figure out how to make it trigger before the physbox gets destroyed? grrrr
edit2
My getto way of getting this to work, was to make another physbox, surrounding the first physbox, and had that one brake when it touched things, and told the first physbox to break, and then that one told the explosion to trigger...
Advertisement
Registered users don’t see ads! Register now!
Avatar
ChickenMobile
2,460 Posts
Posted Sep 05, 2011
Replied 23 hours later

baca25 wrote:
My getto way of getting this to work, was to make another physbox, surrounding the first physbox, and had that one brake when it touched things, and told the first physbox to break, and then that one told the explosion to trigger...

That does sound ghetto... cannot think of why that might be happening though.