OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: GIMPCHIMP on 04 May 2003, 15:43:29

Title: Getting unit location in-game
Post by: GIMPCHIMP on 04 May 2003, 15:43:29
I'd like to be able to position units in buildings where I want them without having to repeatedly guess the height. When I searched the FAQ there was a (broken, but probably obsolete anyway) link to a script that could return the x,y and z coordinates (ie. in text form rather than in a variable) of the player in-game once they were in position so they could be copied and set to the position of the AI unit. Does anyone have a copy of this script, or could they recreate it?

Cheers.
Title: Re:Getting unit location in-game
Post by: macguba on 04 May 2003, 16:02:42
If you place a waypoint directly over a building you get a drop down box in the waypoint screen allowing you to specify the postion.

Can you post exact details of the broken link in the Editors Depot Comments board, so we can get it fixed?    Thanks.
Title: Re:Getting unit location in-game
Post by: Black_Feather on 04 May 2003, 20:56:42
that script was probably just this in a reapeatable radio trigger

hint format ["%1",getpos player]