OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Arctic on 23 Jan 2003, 21:53:26

Title: Actual [x,y,z] coords
Post by: Arctic on 23 Jan 2003, 21:53:26
I still dont understand what i am supposed to use to find the exact coordinates of places. I know there is some Laser Designator Script thing, but what is it?
Title: Re:Actual [x,y,z] coords
Post by: _hammy_ on 23 Jan 2003, 23:33:40
here u can find out what the x, y,z values are for a object:
i think this should work, i haven't done it this way before

Code: [Select]
; Made by HAMMY

;how it works: [OBJECTNAME] exec "xyz.sqs"
_obj = _this select 0

_xPos = _obj Select 0
_yPos = _obj Select 1
_zPos = _obj Select 2

TitleText [format[" X: %1 ", _xPos], "PLAIN DOWN"]
TitleText [format[" Y: %1 ", _yPos], "PLAIN DOWN"]
TitleText [format[" Z: %1 ", _zPos], "PLAIN DOWN"]

exit

if this isn't what u need, i think there is something in the editors depot
Title: Re:Actual [x,y,z] coords
Post by: cpt.Hawkeyez on 24 Jan 2003, 00:29:29
well what do you need the coordinates for you could always use camera.sqs and just look staright at the ground at ground level that will tell you exact coordinates easiest way I found just take out he came stuff and viola
Title: Re:Actual [x,y,z] coords
Post by: Arctic on 24 Jan 2003, 01:54:27
I actually used Hammy's thing, except I combined the three formats into one. Yay