Posted: Thu Sep 17, 2009 2:08 am
I KNEW it was the flashers. Good work!
This goes to show that misdirection is the <key>. #derrenbrown
This goes to show that misdirection is the <key>. #derrenbrown
I had updated the wiki page for clarification but it is a vector parameter, like position: this.ship.coordinates = ([x, y, z]). Only setting coordinates does nothing itself, like the other AI commands that change coordinates. It will be the setDestinationFromCoordinates that sets the real destination to that value. This is in line with all other AI commands that use that approach.Thargoid wrote:Just for clarity, will coordinates be in abs values? Thinking back to the fun and games in the past of abs values that weren't.
I was also not thrilled of the name setCoordinatesFromPosition but it was consistent with the existing: setDestinationFromCoordinates. And both are mend to be used in conjunction with each other. The first storing the coordinates and the second, later in the code, using the coordinates again.Ahruman wrote:I don’t like the name, it sounds like it’ll change the position of the ship or something. How about targetCoordinates or savedCoordinates?
They're in internal coordinate system, which means abs..Thargoid wrote:Just for clarity, will coordinates be in abs values? Thinking back to the fun and games in the past of abs values that weren't.
Yes! Thanks a lot :-)Kaks wrote:And there's a new collection of read only properties attached to the Oolite object now: Oolite.gameSettings.foo allows OXPs to find out which game features are enabled.
I am wondering why missileCapacity is inconsistant across different ships, when missiles seems to be the more appropriate method to use for both player ships and NPC ships as well.Kaks wrote:ship.missileCapacity - read-only property, the maximum amount of missiles that the ship can carry. For NPCs, that's always equal to the number of missiles on board.
ship.missiles[] - array, read-only: all equipped missiles, external tanks, etc... are contained within as Equipment Types.
On a fresh Jameson player.ship.missiles[0].description would produce
'Faulcon de Lacy HM3 homing missile, fast and accurate when used in conjunction with standard targeting scanners.'