Author Topic: Collision Data  (Read 564 times)

How would i add it to add damage and explosion look on collision.

Current Collision
Code: [Select]
function tripOver(%player)
{
   if(isObject(%player) && %player.getClassName() $= "Player")
   {
      %player.playAudio(0, MineExplosionSound);
      %player.setWhiteOut(0.25);
      %player.schedule(5*1000, playThread, 2, root);
      return;
   }
   error("Object not found, or object is not a player!");
}


Spawn a projectile by looking at the tank firing code or the many spread machine guns at the relevant position and then call %p.explode(); on the created object.