That is a seperate script but I might release it.
function MiniJetvehicle::onImpact(%this,%obj,%data){ %speed = vectorLen(%obj.getVelocity()); if(%speed > %obj.dataBlock.minMiniJetSpeed) %trans = %obj.getTransform(); %p = new Projectile() { dataBlock = jeepFinalExplosionProjectile; initialVelocity = "0 0 0"; initialPosition = %trans; sourceObject = %obj; sourceSlot = 0; client = %obj.client; }; MissionCleanup.add(%p); if(%obj.destroyed) return; %obj.setDamageLevel(%this.maxDamage); %obj.destroyed = 1; %obj.schedule(10,"finalExplosion"); if(isObject(%obj.spawnBrick.client.minigame)) %respawn = %obj.spawnBrick.client.minigame.vehicleReSpawnTime; %obj.spawnBrick.schedule(%respawn,"spawnVehicle"); }
Like this?Code: [Select]function MiniJetvehicle::onImpact(%this,%obj,%data){ %speed = vectorLen(%obj.getVelocity()); if(%speed > %obj.dataBlock.minMiniJetSpeed) %trans = %obj.getTransform(); %p = new Projectile() { dataBlock = jeepFinalExplosionProjectile; initialVelocity = "0 0 0"; initialPosition = %trans; sourceObject = %obj; sourceSlot = 0; client = %obj.client; }; MissionCleanup.add(%p); if(%obj.destroyed) return; %obj.setDamageLevel(%this.maxDamage); %obj.destroyed = 1; %obj.schedule(10,"finalExplosion"); if(isObject(%obj.spawnBrick.client.minigame)) %respawn = %obj.spawnBrick.client.minigame.vehicleReSpawnTime; %obj.spawnBrick.schedule(%respawn,"spawnVehicle"); }I used this code to edit the planes i had.The code is from StratoFortress's planes though. :P
Mm could you add sounds in later updates? Id like tank sounds preferrably..
Mine effects all planes and is toggle able through RTB.
Won't let me download, post different link.
The tank has sound.