Jump to content
  • 0
Sign in to follow this  
jowi

How to clear player timer when they leave the map?

Question

I'm trying to clear player variables/timer when they leave the map.

I need something like 'OnPCUnloadMapEvent'.

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

On top of my head: You can loop the timer with getmapxy in it. Or attach the timer on a hidden npc. 

Share this post


Link to post
Share on other sites
  • 0
On 3/1/2023 at 1:22 PM, jowi said:

I'm trying to clear player variables/timer when they leave the map.

I need something like 'OnPCUnloadMapEvent'.

how player leave the map
with npc or usable or by command?

maybe you can give check every certain time if player still on the right map will continue the script
but if not will stop the timer or variable

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.