I'm looking for a way to change the UnitAI on the fly. Changing it is no problem, I'm just not sure where to place my code so that it gets checked every turn. I see that there is a function called AI_unitUpdate, but I don't know when this is called. Is this called for every unit on every turn or is there some special trigger that results in this function being used?