Jump to content
Sign in to follow this  
Shako

function "If Map Entry is Open"

Recommended Posts

Hello!

 

Is there a function that checks if a map entry (portal) is open?

If there is, I would like to know!

 

Thank you!
ShaKo


logo-big.png   logo.png

                                   Sunny Go! Online                                                                    pko.host                                                 

Share this post


Link to post
Share on other sites

Hello @Shako!

 

You can write a small function and use it if map opening condition depends on time:

function CheckPortal()
	
	local hour = GetNowTime()
	if (hour == 14 or hour == 20) then
		return 1 -- Portal is open in 2:00 p.m and 8:00 p.m.
	end
	
	return 0

end

 


Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...