Author Topic: Change ship position  (Read 2344 times)

0 Members and 1 Guest are viewing this topic.

Offline Rodo

  • Custom tittle
  • 212
  • stargazer
    • Steam
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)
el hombre vicio...

 

Offline mjn.mixael

  • Cutscene Master
  • 212
  • Chopped liver
    • Steam
    • Twitter
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.
Cutscene Upgrade Project - Mainhall Remakes - Between the Ashes
Youtube Channel - P3D Model Box
Between the Ashes is looking for committed testers, PM me for details.
Freespace Upgrade Project See what's happening.

 

Offline Rodo

  • Custom tittle
  • 212
  • stargazer
    • Steam
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.
el hombre vicio...

 

Offline The E

  • He's Ebeneezer Goode
  • 213
  • Nothing personal, just tech support.
    • Steam
    • Twitter
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 I'm just aching this can't go on
I came from chasing dreams to feel alone
There must be changes, miss to feel strong
I really need lifе to touch me
--Evergrey, Where August Mourns

 
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.

 

Offline Rodo

  • Custom tittle
  • 212
  • stargazer
    • Steam
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.
el hombre vicio...

 

Offline Lester

  • 27
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.

  

Offline Rodo

  • Custom tittle
  • 212
  • stargazer
    • Steam
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.
el hombre vicio...