Page 1 of 1

AI navpoint behaviour

Posted: Tue Feb 26, 2008 12:22 am
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?