Jump to content

Shop range showing distance


Recommended Posts

16 minutes ago, Distraught said:

sqrt((targetX-yourX)^2 + (targetY-yourY)^2)

Thank you, I know this formula, but the market does not come back when the name closes again.

I met this video on the internet. But I can not access the web site of the video owner. : /

 

uiprivateshop OnUpdate;

if systemSetting.GetShopDistance() < player.GetCharacterDistance(self.vid):
    self.Show()
    x, y = chr.GetProjectPosition(self.vid, 220)
    self.SetPosition(x - self.GetWidth()/2, y - self.GetHeight()/2)
else:
	self.Hide()

 

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.