OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Demoniac on 03 Sep 2002, 22:30:39

Title: Is there a camera.sqs-like script to position units?
Post by: Demoniac on 03 Sep 2002, 22:30:39
Because the GetPos command doesn't work very acurate, I wondered if there's some script like camera.sqs which gives you the position,angle,and perhaps some other parameters about a unit.
Like you walk to a building, go stand like you want the guards to stand, push some button and paste the position and dir to notepad.
I've tried it with a radio-trigger, but the getpos command is just way to inaccurate :(
Title: Re:Is there a camera.sqs-like script to position units?
Post by: Gameer_77 on 04 Sep 2002, 00:13:43
Fraid not; You could use the camera.sqs and position the camera where you want to be, then use the line from camsetpos bit.

_camera camsetpos [3782.32,2472.23,2.34] <----Use this

As for the direction you could make a radio trigger with repeatable and in it put:

hint format ["Direction %1", getdir player]

 8)PEACE
Title: Re:Is there a camera.sqs-like script to position units?
Post by: Kaliyuga on 04 Sep 2002, 07:27:07
Umm have you used setpos in conjunction with a gamelogic or object placed in the editor?

When used correctly it's pretty accurate, planting the guy right in the middle of that gamelogic or object.

 If you still don't like that I know there used to be some sort of program?? or some such thing that returned the "exact" x,y coordinates of a spot on the map.... not sure if it will be back on this site or possibly someone has a copy for ya ;)
Title: Re:Is there a camera.sqs-like script to position units?
Post by: Gameer_77 on 04 Sep 2002, 18:37:21
I got a copy of it but its not accurate. It just gives you the center of the co-ordinates. Not much use if you want it to be accurate.

 8) PEACE