Total players online: 14



Take the Tour | Site Map

It is currently Sun Dec 10, 2017 11:34 pm

All times are UTC - 8 hours




Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: Fri Aug 25, 2017 11:04 pm 
Offline
Adept Scripter
Adept Scripter

Joined: 02/22/2005 11:32
Posts: 159

Groups:
Is it possible to measure distance to object from world x y coordinates?
edit: code below seem to do the job.
Code:
  1.  
  2. hloop:
  3.  gosub check
  4. goto hloop
  5.  
  6. sub check
  7.  wait 1
  8. set %x1 #charposx + 8
  9. set %x2 #charposx - 8
  10. set %y1 #charposy + 8
  11. set %y2 #charposy - 8
  12. if #findx > %x1 || #findx < %x2 || #findy > %y1 || #findy < %y2
  13.  display ok outside
  14.  


close


Top
  Profile 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: Google [Bot] and 16 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group
Hosted by CalWeb Internet Services, Inc.