
Freighttrain-not-even-alpha
Ok, after having no real idea about JavaScript and scripting in something newer than virtual basic and too much time at hand, I decided I want some freighttrains in my Ooniverse... so I looked at and took from quite a lot of scripts, mostly from Thargoid (YAH Mobile and Stellar Serpent, and the look-in-the-direction-of-the-target thing from TrackerCam (I still don't really know how Quaternions work...



from far away...

press release...

Launching twice will have funny results, I will have to script something that only one train is in a system at the same time. At least I know how to do that. ... Well, I know where to look.

Ok, there's still a lot of work, and one thing in particular evades me (Quaternions), that is that the relative upwards orientation of the trailers should match the one from the traction engine.

It stays that way...

One rather hamfisted solution I considered would be to redesign the trailer to a design without UP, maybe even have it rotating... don't have the slightiest idea how and if that would interfere with the direction to the mother ship thing from TrackerCam...

Then theres AIs, but I think I can gather more than the rudimentary things I wrote/copied from looking at OXPs. It flees and cries for help if it is shot at. The released version will propably need a number of escorts.
Ideas/hints/comments how to do the script better and more stable (I had one trailer disconnected once, even though it worked later on flawless...) are more than welcome. Just take a peek and delete the OXP afterwards.

* Look at the number of the brackets. I learned the hard way...