Workshop.codes
Login
Create
literal_who

Kiriko no teleport through walls (Script)

This code is over 6 months old. The code may have expired and might no longer function.

2 Comments

Log in or Sign up to leave a comment.
viper#18545 almost 2 years ago *

wait wouldnt this be realistically better?

rule("[kiriko/swift_step.opy]: Not usable if walls.")
{
event
{
Ongoing - Each Player;
All;
All;
}

conditions
{
"Check if is Kiriko"
(Hero Being Duplicated(Event Player) == Hero(Kiriko) || Hero Of(Event Player) == Hero(Kiriko)) == True;
"Check if selected teammates is in line of sight"
Count Of(Filtered Array(Players in View Angle(Event Player, All Teams, 15), Is In Line of Sight(Event Player,
Current Array Element, Barriers Do Not Block LOS) == True)) == 0;
}

actions
{
Wait(0.016, Restart When True);
Disallow Button(Event Player, Button(Ability 1));
Loop If Condition Is True;
Allow Button(Event Player, Button(Ability 1));
}
}

literal_who creator almost 2 years ago *

Possibly but the teleport highlight still appear through walls. Maybe better if you disable the ability but I haven't tested. I just wrote something.

Workshop.codes