How to make a death-on-collision script for Air Strike Starter Kit?

Hello, everybody!

I was wondering if anybody here familiar with the Air Strike Starter Kit could help me make a death-on-collision script for a game I am developing? When my airplane touches the terrain in the game, it does not blow up and die, but just travels along it like a car. When the enemy planes crash into the terrain, they just stay put and try to fly through it, to no avail. I want the terrain to kill any airplane that comes into contact with it, be it friendly or no.

Thanks!

sethestuff

I’m sorry, I’m not quite familiar with the AirStrike kit, however I think what you need is this:

function OnCollisionEnter(collision : Collision) {
Destroy (gameObject);
}

You can try writing it in JS and attach it to your planes.
(I’m really sorry if this isn’t what you needed…)