Exploding a func_physbox
Quote from baca25 on September 4, 2011, 9:23 pmI 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?
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?
Mapping Since May 21, 2011
Quote from ChickenMobile on September 4, 2011, 10:26 pmYou 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.
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.
Quote from baca25 on September 4, 2011, 11:42 pmahh 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...
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...
Mapping Since May 21, 2011
Quote from ChickenMobile on September 5, 2011, 10:43 pmbaca25 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.
That does sound ghetto... cannot think of why that might be happening though.
