Page 2 of 2
Re: Proposals for Oolite 1.79/1.80, 3 of 5: Javascript-based
Posted: Tue Jun 18, 2013 8:12 pm
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.
Re: Proposals for Oolite 1.79/1.80, 3 of 5: Javascript-based
Posted: Tue Jun 18, 2013 8:20 pm
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.
Re: Proposals for Oolite 1.79/1.80, 3 of 5: Javascript-based
Posted: Tue Jun 18, 2013 8:54 pm
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.