Page 1 of 1

Ship orientation...

Posted: Mon Oct 20, 2008 5:50 am
by drew
I'm making progress, but another question ... :P

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.

Re: Ship orientation...

Posted: Mon Oct 20, 2008 8:06 am
by Eric Walch
drew wrote:
When I add ships with the addShipsAtPrecisely.... they appear in the right place, but they end up pointing in random directions.
| see three ways to solve this.

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.

Posted: Mon Oct 20, 2008 10:55 am
by Commander McLane
There is actually a fourth way, which is the legacy way: use the spawnShip-method.

Although on the other hand it isn't a way, because this method never worked correctly. :?