Oh i see what you mean, like this?
datablock ProjectileData(SafetyWandProjectile : WandProjectile)
{
directDamage = 0;
};
datablock ItemData(SafetyWandItem : WandItem)
{
// Mission editor category
className = "Tool";
//gui stuff
uiName = "Safety wand";
// Dynamic properties defined by the scripts
image = SafetyWandImage;
canDrop = true;
};
datablock ShapeBaseImageData(SafetyWandImage : WandImage)
{
// Projectile && Ammo.
item = SafetyWandItem;
projectile = SafetyWandProjectile;
};
function SafetyWandProjectile::onCollision(%this, %obj, %col, %fade, %pos, %normal)
{
if(%col.isSafe == 0)
{
%col.isSafe = 1;
messageClient(%obj.client,'',"Brick is now safe.");
}
else if(%col.isSafe == 1)
{
%col.isSafe = 0;
messageClient(%obj.client,'',"Brick is not safe.");
}
}
package Safetywand
{
function AdminWandProjectile::onCollision(%this,%obj,%col,%fade,%pos,%normal)
{
if(%col.isSafe)
{
return;
}
Parent::onCollision(%this,%obj,%col,%fade,%pos,%normal);
}
};
activatepackage(Safetywand);