- End(); goes to the End void, that ends the callout.
- You can use
if (Condition)
{
End();
}
- break should only be used on while loops, when using
if
it automaticly ends it when it's done
You can try
if (Game.LocalPlayer.Character.DistanceTo(PlayerPosition) < 10)
{
do shit
}
this is highly recommended to do in a while loop
while (true)
{
GameFiber.Yield();
this will repeat until you do
break;
}
the GameFiber.Yield(); insures your game doesnt crash
but that doesnt work for all plugins...
There is a method called Play Dispatch Audio and another one called Play Dispatch Audio With Location. It only works for the latter