Jump to content
Sign in to follow this  
-RT- Sauron

Is there a way to get private marker position ?

Recommended Posts

Hello all,

is there a way to get the coordinates of the marker which is set by opening the map and then holding shift + map location ?

Share this post


Link to post
Share on other sites

Yup, that's what i did, to make a teleport to map location action.

that's the script (uses domination scripts):

----------------------------------------------------------

if (!X_Client) exitWith {};

"Click on the map to teleport" call XfGlobalChat;

onMapSingleClick "player setPos _pos; onMapSingleClick """"";

if (true) exitWith {};

----------------------------------------------------------

Any idea about the question though?

---------- Post added at 05:24 PM ---------- Previous post was at 04:48 PM ----------

Do the markers players create (this time using double mouse click without the shift) have a particular name ? i tried getting their position by using the text which the player inserts in the text box but it doesnt work.

Edited by [RT] Sauron

Share this post


Link to post
Share on other sites

To get the position of your teleport just add in a hint format['%1, %2, %3'],_pos select 0, _pos select 1, _pos select 2]; inside the single click code.

As far as getting information about the shift-click position thing, I have no idea. I don't know of any commands that can pull that info out specifically. Maybe write code to capture when you shift click and try to figure it out that way?

Why do you need the position of that anyway? Can't you just use a normal map click?

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  

×