Jump to content
Sign in to follow this  
bohemi

To Know X Y Coordinates on the map

Recommended Posts

How can I know X & Y coordinates of an unit on the map?. I need it for

using command SetPos. Example: Player setpos [2000, 3000, 0]; I Know that

0 means the height in meters. But how can I find a specific position _IN

NUMBERS_ (2000, 3000) on the map? Thanks any comment.

Share this post


Link to post
Share on other sites

hi,

How can I know X & Y coordinates of an unit on the map?. I need it for

using command SetPos. Example: Player setpos [2000, 3000, 0]; I Know that

0 means the height in meters. But how can I find a specific position _IN

NUMBERS_ (2000, 3000) on the map? Thanks any comment.

Allready answered HERE

For the record

find_pos.sqs

;****************************************************************
;Find coordinates [x,y,z] Script by Nikiller v0.9b
;Use a radio trigger repeatidly to execute the script
;Note: Place object (flag) where you want to know the coordinates
;contact: nikillerofp@hotmail.fr
;[objectName] exec "scriptName.sqs"
;****************************************************************

_o = _this select 0

hint format ["%1", getPos _o]

exit

cya.

Nikiller.

Share this post


Link to post
Share on other sites
But how can I find a specific position _IN NUMBERS_ (2000, 3000) on the map? Thanks any comment.

If you mean grid coordinate on map?

http://www.ofpec.com/ed_depot/index.php?action=details&id=261&game=OFP

nikiller's script will work.

But how about a trick I picked up awhile ago...

open up the mission.sqm

and look for:

position[]={7263.946777,167.826767,7952.774902};

in order to find position - you need to "swap out" 2nd and 3rd positions in array...

Player setpos [7263.946777,7952.774902,167.826767]

by using this method you could drop objects in editor - then retrieve their exact positions from mission.sqm - and add to script or trigger....

Edited by WW2Weasel

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  

×