Author Topic: Destroy bricks at a radius  (Read 1745 times)

Code: [Select]
function BulldozergunProjectile::radiusDamage(%this, %obj, %col, %distanceFactor, %pos, %damageAmt)
{
  if(%col.getClassName() $= "fxDTSBrick"){
   %obj.killBrick();
   }
  }

%col.killBrick();? I don't know how killBrick(); works, but I assume you'd use it on the brick...

killbrick(); destroys the brick as in the destruct wand does giving it a more realistic look and feel. As an example if you had a tower held up by four pillar's and you destroyed those the brick's on top would fall such as an destruct wand destroys the brick's.