Author Topic: Preventing AIPlayers from being painted.  (Read 689 times)

Code: [Select]
function color0SprayCanImage::OnCollision(%this, %obj, %col, %fade, %pos, %normal){
if(%col.getClassName() $= "AIPlayer"){ return; }
echo(%col.getClassName());
parent::OnCollision(%this, %obj, %col, %fade, %pos, %normal);
}

I tried this but it didn't work, doesn't echo anything, I also tried it without Color0.

Code: [Select]
function paintProjectile::OnCollision(%this, %obj, %col, %fade, %pos, %normal){
if(%col.getClassName() $= "AIPlayer"){ return; }
echo(%col.getClassName());
parent::OnCollision(%this, %obj, %col, %fade, %pos, %normal);
}


national socialist BABY!