Home   Help Search Login Register  

Author Topic: Is there a camera.sqs-like script to position units?  (Read 1091 times)

0 Members and 1 Guest are viewing this topic.

Demoniac

  • Guest
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 :(

Gameer_77

  • Guest
Re:Is there a camera.sqs-like script to position units?
« Reply #1 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

Kaliyuga

  • Guest
Re:Is there a camera.sqs-like script to position units?
« Reply #2 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 ;)

Gameer_77

  • Guest
Re:Is there a camera.sqs-like script to position units?
« Reply #3 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