I tried to make a rule to “attract all enemies in the range in the direction of Reaper in use Ultimate”, but it didn’t work well. The range is 15m. Is there any good way?
variables
{
player:
0: Targets
1: Index
}
rule("Reaper Death Blossom - Pull Effect")
{
event
{
Ongoing - Each Player;
All;
All;
}
conditions
{
(Is Duplicating(Event Player) ? Hero Being Duplicated(Event Player) : Hero Of(Event Player)) == Hero(Reaper);
Is Using Ultimate(Event Player) == True;
}
actions
{
Wait(0.016, Abort When False);
Event Player.Targets = Players Within Radius(Event Player, 15, Opposite Team Of(Team Of(Event Player)), Surfaces);
Event Player.Targets = Remove From Array(Event Player.Targets, Players Within Radius(Event Player, 5, Opposite Team Of(Team Of(
Event Player)), Surfaces));
For Player Variable(Event Player, Index, 0, Count Of(Event Player.Targets), 1);
Apply Impulse(Event Player.Targets[Event Player.Index], Direction Towards(Event Player.Targets[Event Player.Index], Eye Position(
Event Player)), 2.500, To World, Incorporate Contrary Motion);
End;
Loop If Condition Is True;
}
}