Hard Light Productions Forums
Modding, Mission Design, and Coding => The FRED Workshop => Topic started by: Rodo on January 03, 2012, 08:50:40 pm
-
That, but not so fast!.
I need to change the position of a ship that has not yet arrived in mission, is it possible?... I'm leaning to no, but it doesn't hurt to ask.
(Yes, I've already tested doing it with set_object_position and no luck so far)
-
hmm, this is an interesting problem. I'll forgo the question of "why" for now and just hand you a suggestion.
This won't be extremely accurate, but you could use an invisible and untargettable model (I use one in BtA for things) and move that around instead. Then have your ship in question warp in near the invisible marker.
-
Not sure if I'm understating correctly, you mean using an invisible model as a guide to make another ship warp beside it?
From what I've tested it is impossible to change a ship's position before it enters the battlefield.
On another approach, I think you are trying to tell me to use a model with invisible textures and move that around then make it seem like it jumped in.
I have thought of that and it will surely work, but I'm reluctant to go that way... Just thinking about the two or three sexps that I need to pull off in order for the jump to look "natural" is giving me a headache.
-
No, what mjn suggested is the best way to do this. Basically, you have to use FRED's ship editor to set the arrival location to "Near Ship", with the invisible location marker as the target, and a reasonably low distance.
-
If exact location is critical (or if orientation is at all important), you can put the ship in-mission somewhere far off and use show-warp-effect and ship-lat-maneuver to make it look like it's jumping in. The only problem is that the part of the ship behind the warp effect would be visible immediately.
-
Well orientation is important, I want it to jump facing a certain target and at a certain distance.
No, what mjn suggested is the best way to do this. Basically, you have to use FRED's ship editor to set the arrival location to "Near Ship", with the invisible location marker as the target, and a reasonably low distance.
I completely missed the jump near to option, can't believe I forgot about it.
I'll test it out see if it helps a bit, if not I'll just figure some other way to do it eventually, thanks people.
-
If you want to be able to control the direction as well, use "in front of ship" as the arrival location. The ship will arrive in front of the location marker and will also be facing it. The approach angle slightly randomised, I think the limit is around 30°.
If you use "Near ship", you can't really control the direction the ship will be facing as you can only set the target, not the location. The possible locations the ship can arrive from form a sphere, whereas "in front of ship" form a cone.
-
If you want to be able to control the direction as well, use "in front of ship" as the arrival location. The ship will arrive in front of the location marker and will also be facing it. The approach angle slightly randomised, I think the limit is around 30°.
If you use "Near ship", you can't really control the direction the ship will be facing as you can only set the target, not the location. The possible locations the ship can arrive from form a sphere, whereas "in front of ship" form a cone.
Noted, will use some kind of marker to make it jump where I want it and facing where I need.