I have started work on my Impedimenta spell (slows down opponents) Problem is that it only works for half a second, How do I put a duration in...
code:
function ImpedimentaProjectile::onCollision(%this,%obj,%col,%fade,%pos,%normal)
{
if(%col.getClassName() $="Player"){
%col.setVelocity(VectorMul(%player.getvelocity(),0.1));
}
}