This is working quite well but still calls onDamage.
First it does 10 damage,20 damage, 40 damage, then kills when I include it into the onDamage function of my playertype.
Now I came up with an idea:
function PlayerEliteForceArmor::onDamage(%this,%obj,%delta)
{
Parent::onDamage(%this,%obj,%delta);
if(%delta > 0)
{
if(%obj.getState() !$= "Dead")
{
%currentDamage = %obj.getDamageLevel();
%addingDamage = %activeDamage / 10;
if(%activeDamage < 10)
{
%activeDamage += 1
bleedSchedule1 = %obj.schedule(333,setDamageLevel,%currentDamage+%addingDamage);
}
else
{
%activeDamage = 0;
parent::onDamage(%this,%obj,%delta);
}
}
}
}
Now this does the bleeding sort of like I want it, but not really.
Because when I got hit 3 times it also bleeds 3 times.
But I think I'm on the right track.
What does the ::onDamage(%this,%obj,%delta) stand for?