player.ship.position = this._myPlaceIReallyWouldPreferToBe.position
Simple. In concept. A simple one afternoon task, no need for any bells and whistles. No need for any emails to the player saying, "Congratulations, you are now the proud owner of a Cheatonics Mk 2 teleporter."
No need. None. One afternoon. Have it fished by tea-time, see it work.
This will be day three; it still doesn't work. The main reason remaining for its unworkingness seems to be that the p.s.torusEngaged & p.s.injectorsEngaged Booleans appear to behave the way Someone Else thought they should behave, but I'm unsure. It could be something else entirely. But, let us ask the question „Wo ist die Dokumentation?“
https://wiki.alioth.net/index.php/Oolit ... orsEngaged
https://wiki.alioth.net/index.php/Oolit ... rusEngagedinjectorsEngaged
This property was added in Oolite test release 1.81.
injectorsEngaged : Boolean(read-only)
Is the player ship currently using fuel injection.
Imagine this scenario, gentle reader:-torusEngaged
This property was added in Oolite test release 1.81.
torusEngaged : Boolean(read-only)
Is the player ship currently using torus drive.
Code: Select all
if (validDestination) {
if (p.s.injectorsEngaged) {
Wee, teleport!
validDestination = false;
}
}
It works! Send that email!
Change compass target (at which point we'll again have a valid destination).
Wee, teleport again!
What the heck?
My finger no longer depresseth the injectors key-button-thingy, why are we teleporting again?
(Because apparently „Wo ist der Dokumentation?“ is not a legitimate question in any man's language.)