Jump to content
Sign in to follow this  
lato1982

How to return 2D cursor world position?

Recommended Posts

Hi,

Is there a way to get the world coordinates of 2D map cursor? These are shown in the left bottom edge of screen in Eden [x,y] but I can't get a way to get that info in game, when the player opens the map and points an area. Also it needs to be returned without mouse click, so OnMapSingleClick won't help here. Any ideas?

 

Thank You,

 

Share this post


Link to post
Share on other sites

Thanks, that is exactly what I was looking for!

One more question:

 

I have found that Map is display 12", but the command requiers a CONTROL instead of DISPLAY, I have no idea how to find this.

_cords = (findDisplay 12) ctrlMapScreenToWorld getMousePosition;

 

Any tips?

 

EDIT

FOUND IT! :)

 

This works correctly:

_cords = (findDisplay 12 displayCtrl 51) ctrlMapScreenToWorld getMousePosition;

 

 

  • Like 1

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×