Page 1 of 1

Where do I put it?

Posted: Sun Jan 15, 2017 9:44 am
by Brierre
I set a var onZoneIn to os.time().

I want to check that var and when (current os.time - var) reaches 5 minutes, kick the player out of zone.

Where do I put the second part of the code (the check of how long they've been in the zone)?

I'm having a tough time finding the right function to put this in.

Thanks,

:)

Re: Where do I put it?

Posted: Mon Jan 16, 2017 7:51 pm
by bluesolarflare
I am not sure it is the most elegant way but you could create your own status effect with a blank icon??. Set the status effect to 5 minutes and set the effect OnEffectLose to change the pos (location) of the player to zone them out.

Re: Where do I put it?

Posted: Sun Jan 22, 2017 8:09 pm
by Brierre
Thank you :)