OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Artak on 17 Jun 2003, 14:51:47

Title: distance from a marker
Post by: Artak 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?
Title: Re:distance from a marker
Post by: deaddog 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.

 :)
Title: Re:distance from a marker
Post by: Artak on 17 Jun 2003, 18:20:42
Works like a charm. Excellent.

Thank you very much  :-*