Home   Help Search Login Register  

Author Topic: distance from a marker  (Read 758 times)

0 Members and 1 Guest are viewing this topic.

Offline Artak

  • The old beanbag shaker
  • Former Staff
  • ****
  • You want to talk about it, yes?
    • OFP Team Finlanders
distance from a marker
« on: 17 Jun 2003, 14:51:47 »
howdy folks  :D

I was wondering, has anyone made a script that will calculate a units distance from a marker?
Not all is lost.

deaddog

  • Guest
Re:distance from a marker
« Reply #1 on: 17 Jun 2003, 14:58:07 »
I like to use SnYpir's "distancepos" function.

_dis=[getpos player,getmarkerpos "marker"] call distancepos

It calculates the distance between two "position" arrays.

 :)

Offline Artak

  • The old beanbag shaker
  • Former Staff
  • ****
  • You want to talk about it, yes?
    • OFP Team Finlanders
Re:distance from a marker
« Reply #2 on: 17 Jun 2003, 18:20:42 »
Works like a charm. Excellent.

Thank you very much  :-*
Not all is lost.