Where do I put it?

Post Reply
Brierre
Posts: 20
Joined: Mon Jul 18, 2016 7:36 pm

Where do I put it?

Post by Brierre » Sun Jan 15, 2017 9:44 am

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,

:)

bluesolarflare
Posts: 129
Joined: Wed May 27, 2015 4:23 pm

Re: Where do I put it?

Post by bluesolarflare » Mon Jan 16, 2017 7:51 pm

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.

Brierre
Posts: 20
Joined: Mon Jul 18, 2016 7:36 pm

Re: Where do I put it?

Post by Brierre » Sun Jan 22, 2017 8:09 pm

Thank you :)

Post Reply