How do I make an explosion kill players but not damage the environment? My game relies on some explosions, but there are so many important unanchored joints I have in it, that the explosions keep messing it up.
Every explosion has a value that effects how the explosion interacts with the terrain. There are two ways to read and write this value but its easier to reference using numbers:
Explosion.ExplosionType = 0 --NoCraters; NO MESS! Explosion.ExplosionType = 1 --Craters(no debris); Creates a hole in surrounding terrain Explosion.ExplosionType = 2 --Craters and Debris;Creates a hole along with broken terrain pieces.
Hope this helped.