I don't understand why you want to use 2 entities for your ai-functions? You can also split up your ai into many functions.

An simple example:
Code:

function ai_loop
{
while (1)
{
ai_think(); //This function retrieves information about the entities environment
ai_act(); //Here the entity realy moves, shoots...
wait(1);
}
}



ai_think sets variables like what_to_do_next... as soon as ai_act is ready with its current action (like shooting), it starts with the work specified in what_to_do_next...


MfG, Christian__A. Visit my Site: www.chris-a.de