ItsMods

Full Version: Staying on Area mod
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Maybe this will be quite similar to above answers:
Code:
if(Distance((horizontal axis, vertical axis, height), self.origin) <= 9000)
{
self thread HAHAHAHAHA();
} else {
self notify("WAAAAAAAAAAA");
}

HAHAHAHAHA()
{
self endon("WAAAAAAAAAAA");
//code
}


This will end the thread if the player got too far from the location Sleepy
@EDIT: Epic fail, I forgot to put loop in the code if it was necessary.
Pages: 1 2