i am trying to make a shield that kills any projectile it comes in contact with by firing its own projectile to delete the other. ive tried to collide projectiles with the shield projectile collision
function greenshieldprojectile::onCollision(%this,%obj,%col,%fade,%pos,%normal)
{
if(%col.getType() & $Typemasks::ProjectileObjectType)
{
%col.delete();
}
else
return
}
but the other projectile is not destroyed. can projectiles even collide with each other?