Deepu Posted February 27, 2016 Share Posted February 27, 2016 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
Deepu Posted February 27, 2016 Author Share Posted February 27, 2016 Never mind, I was genius enough to fix it myself.. I used LineOfSight and 2 Points formula Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now