Hello!
I’m trying to make so, if you’re in range of Sombra’s ult you take 50% damage from it. I have played around with “damage players with range” but can’t seem to get it to work. It does the damage but doesn’t do it properly, what I mean is it does 75 damage to all heroes that are in-range of Sombra’s ult.
This should work from Sombras perspective, so Sombra will trigger the damage. Maybe you want another context from a Global context or from the Victims perspective, let me know if you want it differently. Here is the snippet:
rule("Rule 1")
{
event
{
Ongoing - Each Player;
All;
Sombra;
}
conditions
{
Is Alive(Event Player) == True;
Is Using Ultimate(Event Player) == True;
}
actions
{
Damage(Players Within Radius(Event Player, 10, Opposite Team Of(Team Of(Event Player)), Surfaces), Event Player, 75);
}
}
1 Like
I have tried this but I want it to do 50% damage of enemies max health.
For example Sigma’s ult does 50% damage of enemies max health
Thanks for quick reply
I just gave you a working ground the rest can be done by yourself.
1 Like
Since a single damage action can only do one specific amount of damage, you’ll have to damage every single person within radius separately. This can be done with a for-loop. To see how they work, you can check out this article: https://workshop.codes/wiki/articles/how+to+use+loops