Proposals for Oolite 1.79/1.80, 3 of 5: Javascript-based AIs

General discussion for players of Oolite.

Moderators: winston, another_commander

User avatar
Commander McLane
---- E L I T E ----
---- 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:

Re: Proposals for Oolite 1.79/1.80, 3 of 5: Javascript-based

Post by Commander McLane »

Disembodied wrote:
At the risk of introducing player-centricity, would it be worth adding something along the lines of "head towards the player"? Or adding in the player as a specific (and obviously mobile) "destination"? It could be useful for OXP authors.
If the player coordinates (or coordinates of any arbitrary entity) can be fed as destination into the first behaviour ("go to destination"), you can get any mobile destination, which would be very useful.
User avatar
cim
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 4072
Joined: Fri Nov 11, 2011 6:19 pm

Re: Proposals for Oolite 1.79/1.80, 3 of 5: Javascript-based

Post by cim »

Commander McLane wrote:
Disembodied wrote:
At the risk of introducing player-centricity, would it be worth adding something along the lines of "head towards the player"? Or adding in the player as a specific (and obviously mobile) "destination"? It could be useful for OXP authors.
If the player coordinates (or coordinates of any arbitrary entity) can be fed as destination into the first behaviour ("go to destination"), you can get any mobile destination, which would be very useful.
That's probably the easiest way to do it. Set the destination for that function to player.ship.position, and add a suitable recalculation time so that it tracks the changes in position and adjusts course as needed.
User avatar
Thargoid
Thargoid
Thargoid
Posts: 5528
Joined: Thu Jun 12, 2008 6:55 pm

Re: Proposals for Oolite 1.79/1.80, 3 of 5: Javascript-based

Post by Thargoid »

I'd also like to propose "follow" as an action. Not fully in formation (nicely covered already by escort) but to maintain a distance behind the target and follow the same course. Useful for things like towing and tractor beams.
Post Reply