Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: Black Wolf on October 06, 2004, 12:15:53 pm

Title: How many decimal places does Set ship position go to?
Post by: Black Wolf on October 06, 2004, 12:15:53 pm
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.
Title: How many decimal places does Set ship position go to?
Post by: Goober5000 on October 06, 2004, 12:34:44 pm
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?
Title: How many decimal places does Set ship position go to?
Post by: Trivial Psychic on October 06, 2004, 07:57:08 pm
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.