Home
Intel Depot
Editors Depot
Missions Depot
Addons Depot
Forum
Home
Help
Search
Login
Register
OFPEC Forum
»
Editors Depot - Mission Editing and Scripting
»
OFP - Editing/Scripting General
(Moderators:
h-
,
savedbygrace
,
Gruntage
) »
distance from a marker
« previous
next »
Send this topic
Print
Pages: [
1
]
Go Down
Author
Topic: distance from a marker (Read 760 times)
0 Members and 1 Guest are viewing this topic.
Artak
The old beanbag shaker
Former Staff
You want to talk about it, yes?
distance from a marker
«
on:
17 Jun 2003, 14:51:47 »
howdy folks
I was wondering, has anyone made a script that will calculate a units distance from a marker?
Logged
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.
Logged
Artak
The old beanbag shaker
Former Staff
You want to talk about it, yes?
Re:distance from a marker
«
Reply #2 on:
17 Jun 2003, 18:20:42 »
Works like a charm. Excellent.
Thank you very much
Logged
Not all is lost.
Send this topic
Print
Pages: [
1
]
Go Up
« previous
next »
OFPEC Forum
»
Editors Depot - Mission Editing and Scripting
»
OFP - Editing/Scripting General
(Moderators:
h-
,
savedbygrace
,
Gruntage
) »
distance from a marker
Top of page