Hard Light Productions Forums

Modding, Mission Design, and Coding => The FRED Workshop => Topic started by: Evergreen on November 19, 2010, 02:40:10 pm

Title: set-object-position for ships not yet warped in?
Post by: Evergreen on November 19, 2010, 02:40:10 pm
Hello there,

While trying to set up warp-in-point that is relative to another ship, I've just noticed that FRED seems to be unwilling to modify the coordinates of a ship that has not yet warped in via the set-object-position SEXP. It simply warps in at the position I put it to in FRED.

Could someone inspire me with a solution to that problem which doesn't involve the cumbersome use of any warp-effect SEXPs?

Thanks. :)
Title: Re: set-object-position for ships not yet warped in?
Post by: General Battuta on November 19, 2010, 02:45:05 pm
If the ship's facing is unimportant...try setting it to warp in 10 meters from an invisible stealthed nav buoy. Set-object-position the nav buoy to where you need it?

Otherwise I don't see any way.
Title: Re: set-object-position for ships not yet warped in?
Post by: TopAce on November 19, 2010, 03:18:02 pm
How many variations are there? If it's only 2 or 3, then I'd consider using the appropriate number of ships. It requires you to be very careful with SEXPing all possible outcomes, but it'll work.

Or:

Have you tried this kind of tree:

-has-arrived-delay
--0
--<target ship>
-set-object-position
--<whatever>

It may move the warp effect with the ship. It's worth a try, anyways.
Title: Re: set-object-position for ships not yet warped in?
Post by: karajorma on November 19, 2010, 07:43:42 pm
It won't move the warp effect.
Title: Re: set-object-position for ships not yet warped in?
Post by: Evergreen on November 27, 2010, 05:23:19 pm
Hey, thanks for the input.

If you use an invisible, stealthy buoy and set the warp in location options to "in front of ship", it's "merely" a matter of having the buoy point in the correct direction, if one wants to control the direction the desired ship is to warp in. It's not an ideal solution, but it seems to work. The only other alternative, as it appears to me: generous use of the calculator and the FRED measure-tool. :)