HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Can AI scripts be restarted?

05-05-2004, 05:38 PM#1
Vidstige
I start my AI script with
call StartCampaignAI( Player(1), "war3mapImported\\wumpus.ai" )
watch it executing its main-loop a while and then sends the order
call CommandAI( Player(1), -1, 0 )
which makes the script exit its main-loop and tell me that it is shutting down.

So far, so good. The problem arise when I try to restart the script with
call StartCampaignAI( Player(1), "war3mapImported\\wumpus.ai" )

Is there any secret rule that limits the number of AI script starts for each player to one?

If that is the case I suppose I just have to make my script implement a reset command...
05-06-2004, 10:28 AM#2
AIAndy
I think you can only start one AI script per player but I have never really tried it.
So I guess if it caused problems to restart it then that limit is there.