Just a quich scetch on how i feel the AI script should be alowed to control things.

of course, it may end up totally different to this, but as i stated above, its a technique that worked for me, and means you cant code the AI to make other bots run off, or make yours teleport... etc etc.
Its based on using the same Control Function for both Player and AI, the player function hands the control function the x,y values, fire buttons, things like that, and the control function does what needs to be done.
The control function is also where the program does any scanning, and places them into variables for each robot accessible via script.
Heres the DOC if you want to tear it apart :)
http://DAMIENSTURDY.PWP.BLUEYONDER.CO.UK/bot.doc

of course, it may end up totally different to this, but as i stated above, its a technique that worked for me, and means you cant code the AI to make other bots run off, or make yours teleport... etc etc.
Its based on using the same Control Function for both Player and AI, the player function hands the control function the x,y values, fire buttons, things like that, and the control function does what needs to be done.
The control function is also where the program does any scanning, and places them into variables for each robot accessible via script.
Heres the DOC if you want to tear it apart :)
http://DAMIENSTURDY.PWP.BLUEYONDER.CO.UK/bot.doc