So whenever I try to use Heal(event damage/1/any number) within a player took damage thing it will always heal the victim to full and ignore the number I put in.
Here is the code:
variables
{
global:
3: V_Game_Active_Boolplayer:
0: V_IsHale_Bool
4: V_HaleTagged_Bool
}rule(“Pre Game - Player - Team Hurt”)
{
event
{
Player Took Damage;
All;
All;
}conditions
{
Is Game In Progress == True;
Global Variable(V_Game_Active_Bool) == True;
Player Variable(Victim, V_IsHale_Bool) == False;
Player Variable(Attacker, V_IsHale_Bool) == False;
}actions
{
Set Global Variable(N, Event Damage);
Heal(Victim, Null, 0.100);
Skip If(And(Is Alive(Victim), Player Variable(Victim, V_HaleTagged_Bool)), 1);
Resurrect(Victim);
}
}
I’ve tried setting the heal amount to many values but the result is always the enemy full healing.