Author Topic: Explode on impact  (Read 424 times)

How do I make it to where a vehicle will explode if it is going beyond a certain speed and hits something?

« Last Edit: April 01, 2010, 05:37:57 PM by pankies »

Inside of some onCollision:
if(vectorLen(%vehicle.getVelocity()) > 88)
    %vehicle.asdf();

Also, define %vehicle.

Example vehicle: Biplane

onCollision:
No script

ifVehicle is going over 50bps:

if(vectorLen(%vehicle.getVelocity()) > 50)
   %vehicle.biplane

Blow Up
No script

Now what?

Bump

Would "wheeledVehicleData::onCollision" serve as an input?