Author Topic: How many decimal places does Set ship position go to?  (Read 1364 times)

0 Members and 1 Guest are viewing this topic.

Offline Black Wolf

  • Twisted Infinities
  • 212
  • Hey! You! Get off-a my cloud!
    • Visit the TI homepage!
How many decimal places does Set ship position go to?
I'm asking because when you position things with FRED's position and orientation editor, it's not perfectly precise. You tell it to go to 4, 4, 4 and in the mission document it might actually be at 3.999940, 4.000108, 4.000042. Some thing being wored on for TI at the moment require some very precise positioning, and I was hoping to use every-time, set-ship-position, but if it's going to hover around 4 rather than dead on 4 there's not an awful lot of point to it in this instance.
TWISTED INFINITIES · SECTORGAME· FRONTLINES
Rarely Updated P3D.
Burn the heretic who killed F2S! Burn him, burn him!!- GalEmp

 

Offline Goober5000

  • HLP Loremaster
  • Moderator
  • 214
    • Goober5000 Productions
How many decimal places does Set ship position go to?
Hrm.  Sexps can only handle integers, so when you set-ship-position to ( 4, 4, 4 ) it's going to be ( 4, 4, 4 ).  Not, unfortunately, ( 4.0, 4.0, 4.0 ).  It should convert from integer to floating-point reliably, but I can't guarantee it.  Though even the difference between 4 and 5 is not really all that large in terms of gameplay.

Would you be willing to PM or ICQ me the details?

  

Offline Trivial Psychic

  • 212
  • Snoop Junkie
How many decimal places does Set ship position go to?
While we're on the subject of precise ship positioning in FRED, is it possible to add a section in the object editor so one can adjust an object's pitch, yaw, and bank by numerical entry?  Right now, you can only do this by a ) saying "Point to this object", b ) "point to this location", c ) control position by mouse input.  Under option c), sometimes its difficult to obtain a precise desired angle and it would help to be able to do so by entering the exact figure you want, as can be done for an object's location, in the objects editor.
The Trivial Psychic Strikes Again!