Author Topic: Pepper Spray  (Read 578 times)

I've made a pepper spray, it does 1 damage it's in a fillcan and the projectile is black. How do I make it blind you :cookieMonster:

Put this in your pepper spray's projectile damage function:
Code: [Select]
if(%col.getClassName() $= "Player" || %col.getClassName() $= "AIPlayer")
{
%col.setWhiteOut(1);
}


Or better:

Code: [Select]
if(%col.getType() & $TypeMasks::PlayerObjectType) {
%col.setWhiteOut(1);
}