Home   Help Search Login Register  

Author Topic: Meters to coordinates?  (Read 683 times)

0 Members and 1 Guest are viewing this topic.

GeneralCoder

  • Guest
Meters to coordinates?
« on: 07 Aug 2003, 17:33:28 »
Have somebody made script wich would make x and y coords to map coords?
like:

[0,0] = AA

Offline .pablo.

  • Former Staff
  • ****
  • When in doubt, empty the magazine.
Re:Meters to coordinates?
« Reply #1 on: 08 Aug 2003, 08:49:32 »
explain it in more detail, idk what you're asking

Offline KTottE

  • Former Staff
  • ****
Re:Meters to coordinates?
« Reply #2 on: 08 Aug 2003, 16:02:28 »
Check this out, I think it's what you're looking for.
"Life is not a journey to the grave with the intention of arriving safely in a pretty and well preserved body, but rather to skid in broadside, thoroughly used up, totally worn out, and loudly proclaiming 'WOW What a Ride!'"

GeneralCoder

  • Guest
Re:Meters to coordinates?
« Reply #3 on: 08 Aug 2003, 18:28:56 »
Ok I gues Il try this again then.
So you know when someone gives coordinates via sidechat like:
"1(leader):5 go to Ed63"

So if I have coords in array like: [3204,1047]
It would be good to have function wich would make thoes values a string so I can have my own coord talkie walkie or what ever.  :)

example of situation where such would be good:

_group move getpos target
player sidechat format["Bababear here we're sending group to %1 to block the enemy movement, over.",getpos target call tocoordstring]

right?  :-\


Offline KTottE

  • Former Staff
  • ****
Re:Meters to coordinates?
« Reply #4 on: 08 Aug 2003, 23:55:42 »
I'm not sure what you're on about now, but the function I linked you to will do exactly that.
If you include it, all you would have to do is this:
Code: [Select]
_group move getPos target
player sidechat format["Bababear here, we're sending group over to %1 to block the enemy movement, over.",getPos target call GridCoord]
"Life is not a journey to the grave with the intention of arriving safely in a pretty and well preserved body, but rather to skid in broadside, thoroughly used up, totally worn out, and loudly proclaiming 'WOW What a Ride!'"

GeneralCoder

  • Guest
Re:Meters to coordinates?
« Reply #5 on: 09 Aug 2003, 14:07:42 »
I'm not sure what you're on about now, but the function I linked you to will do exactly that.
If you include it, all you would have to do is this:
Code: [Select]
_group move getPos target
player sidechat format["Bababear here, we're sending group over to %1 to block the enemy movement, over.",getPos target call GridCoord]

Oh right I belive it does becose I was looking the getRelPos at the first place!   :-[

Thanks man.