Jump to content
Sign in to follow this  
Nephris1

Player Position to Clipboard

Recommended Posts

Hi folks,

a few days ago i browsed the forum and read about a function, that allows to copy the players position to clipboard.

But i cant find the post anymore, as i think it was made by one of the devs.

Can u give me hand by this plz.

I think this is a very handy function .... if u know how to deal with it:

Share this post


Link to post
Share on other sites
_myPos = getPos player;
_textPos = format ["%1", _myPos];
hint _textPos;
copyToClipboard _textPos;

Share this post


Link to post
Share on other sites

copytoclipboard str (getpos player)

Share this post


Link to post
Share on other sites

I got some trouble with the coordinates,copied to clipboard.

I receive this coordinates [1815.64,11864.4,0.000701904]

I changed the 2nd coordinate for the height [1815.64,0.000701904,11864.4]

When i now check my position in the mission.sqm i get this coordinates

[1825.9695,149.65237,11856.363]

Seems like the script dont get the height coordinate.

Or am i wrong anywhere?

Share this post


Link to post
Share on other sites

The problem may be that getPos returns height above the terrain level at that location, but the mission.sqm uses the height above sea level - getPosASL.

Just a guess, though.

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  

×