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,
Where do I put it?
-
- Posts: 129
- Joined: Wed May 27, 2015 4:23 pm
Re: Where do I put it?
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.