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.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.
Proposals for Oolite 1.79/1.80, 3 of 5: Javascript-based AIs
Moderators: winston, another_commander
- 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:
Re: Proposals for Oolite 1.79/1.80, 3 of 5: Javascript-based
Re: Proposals for Oolite 1.79/1.80, 3 of 5: Javascript-based
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.Commander McLane wrote: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.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.
Re: Proposals for Oolite 1.79/1.80, 3 of 5: Javascript-based
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.
My OXPs via Boxspace or from my Wiki pages .
Thargoid TV
Dropbox Referral Link
Thargoid TV
Dropbox Referral Link