Jump to content
FlashMuffin

How do i spawn an explosion when a prop dies?

Recommended Posts

as the title says, i'm very new to scripting and i'm looking for any tips on how to spawn an explosion on a prop if it gets destroyed.

I'm trying to get a fuel pump to blow up when it gets destroyed and i'm looking for any help i can get 🙂

Share this post


Link to post
Share on other sites

In your prop's init field:

this addEventHandler ["Killed", { 
	params ["_unit"];
	"Bo_GBU12_LGB" createVehicle (getPos _unit); 
}];

 

  • Like 2

Share this post


Link to post
Share on other sites
35 minutes ago, Harzach said:

In your prop's init field:


this addEventHandler ["Killed", { 
	params ["_unit"];
	"Bo_GBU12_LGB" createVehicle (getPos _unit); 
}];

 

 can i make a smaller explosion or is this the only one that works?

Share this post


Link to post
Share on other sites

Basically any explosive device from CFGAmmo.

 

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×