HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Can't get AI to run

11-17-2002, 06:08 PM#1
Guest
I'm alright with coding my own AI scripts, but now I have this problem: Eventhough I use the StartCampaignAI trigger the enemy just sits there. They don't even harvest. I've tried changing one of the existing campaign map's AI Script, and that worked, but only for the map it was designed for, and I couldn't rename the script file. Is there something I'm missing? Please help me!
11-17-2002, 06:35 PM#2
Guest
Check your function names, you probably have one misspelled (or you're trying to use a function that doesn't really exist).

9 times out of 10, if your AI behaves like there isn't a script running at all, then there's an invalid function name somewhere. On the other hand, if your map crashes just before it finishes loading (when you add your AI script), then you're most likely trying to pass an invalid parameter to a function (such as giving it an int, where it's expecting a string).

Hope this helps...
11-17-2002, 06:44 PM#3
Guest
Thanx for posting, I'll look into it...8)