AI navpoint behaviour

General discussion for players of Oolite.

Moderators: winston, another_commander

Post Reply
User avatar
JensAyton
Grand Admiral Emeritus
Grand Admiral Emeritus
Posts: 6657
Joined: Sat Apr 02, 2005 2:43 pm
Location: Sweden
Contact:

AI navpoint behaviour

Post by JensAyton »

Here’s a bit of a head-scratcher: when an AI in BEHAVIOUR_FLY_THRU_NAVPOINTS – triggered by performFlyRacepoints – reaches the endpoint, it first sends an AI message (ENDPOINT_REACHED), then switches to BEHAVIOUR_IDLE. It seems more flexible to do it the other way around, so the AI can initiate some other behaviour. Anyone familiar with these racing AI thingies?
Post Reply