I'm making progress, but another question ...
When I add ships with the addShipsAtPrecisely.... they appear in the right place, but they end up pointing in random directions.
I'm trying to create what looks like a 'parking lot' and need the ships to all be aligned in the same direction - is there a way of doing this?
Cheers,
Drew.
Ship orientation...
Moderators: winston, another_commander
- Eric Walch
- Slightly Grand Rear Admiral
- Posts: 5536
- Joined: Sat Jun 16, 2007 3:48 pm
- Location: Netherlands
Re: Ship orientation...
| see three ways to solve this.drew wrote:When I add ships with the addShipsAtPrecisely.... they appear in the right place, but they end up pointing in random directions.
1) With AI: Let them search for the systemStation, just a station or the witchpoint. All these are fount beyond scanner range. Then do a "setTargetToDestination", followed by a "faceDestination".
2) With a JS world script: Copy the orientation of one object and give it to all others. With such a script you could even rearrange the ships into a fixed pattern.
3) With a JS ship script. Let it orientate itself in a fixed with a startup script.
UPS-Courier & DeepSpacePirates & others at the box and some older versions
- Commander McLane
- ---- E L I T E ----
- Posts: 9520
- Joined: Thu Dec 14, 2006 9:08 am
- Location: a Hacker Outpost in a moderately remote area
- Contact: