I've written a custom AI script, and want to use it with several creatures in an area. The first creature encountered works great, but the subsequent ones spawn, don't move/attack and are not interactive. I've confirmed it's the script and not the creatures by swapping around the order in which they spawn (there's one mob in each group using the script, and groups spawn in waves, one after the other), and I've tried both creating 2 instances of the same creature type and creating 2 separate creature types.
Any ideas what I could be doing wrong? Is it even possible to have more than one creature using the same script? This is the first time I've tried it. My guess is that I need to do some sort of clean up when the first creature dies to reset the script variables, maybe?
I can post my code if that's useful, although it is a bit messy.





Retour en haut






