function AooMine::detonateMine(%this) { %explosion = new t2dParticleEffect() { // I don't know why this isn't working. //effectFile = expandFilename("~/data/particles/bombExplosion.eff"); scenegraph = %this.scenegraph; size = "10 10"; // this seems to have no effect. }; %explosion.loadEffect("~/data/particles/bombExplosion.eff"); //%explosion.size = "0.010 0.010"; // this seems to have no effect. %explosion.setEffectLifeMode("KILL", 1); %explosion.setPosition(%this.getPosition()); %explosion.sizes[0] = 0.1; %explosion.sizes[1] = 0.1; %explosion.sizes[2] = 0.1; %explosion.playEffect(); // Propel the ship. %this.applyThrust(player); // Damage the asteroids. %this.damageAsteroids(); // Remove the mine. %this.safeDelete();}