Jump to content

3D world coordinates check


Deepu

Recommended Posts

Hi guys... I was just trying to use the 3D world coordinate checking just as you would for 2D screen coordinates..

if x > something and y > something and x < something and y < something then

do it;

end

but this script part won't work... when trying to hover my mouse over a world object... not click... HOVER..

function showSelectedArea(aa, ab, ac, ad, ax, ay, az) 
  if ax > -1194.14172 and ay > -985.25745 and ax < -1190.38721 and ay < -981.35638 then 
      outputChatBox(ax .. ", " .. ay); 
  end 
end 
addEventHandler("onClientCursorMove", root, showSelectedArea) 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...