HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

getting cpu controlled units to use their spells

07-25-2004, 01:34 PM#1
_biO_
dota style funmap (again):

computer controlled units are created and given an order to attack-move to a region.. what do i have to do to make those units use their spells?

if the controlling player is "neutral hostile" they use the spells... but i think using the neutral hostile AI has some additional consequences (e.g. units moving back to the location they were created)

i'm really not very experienced with all that AI stuff...

so.. is there an easy way to convince those units to use their spells? do i have to trigger it all manually? do i have to start a certain AI script? or do i just have to use the search function with the proper keywords? ;P
07-31-2004, 07:56 AM#2
PitzerMike
There is no easy way to do this. You would have to check for situations where they could use certain spells via triggers and issue the orders via triggers.
In the AMAI code you might find some useful hints how this could be done.
07-31-2004, 04:18 PM#3
AIAndy
Actually they should use their spells but the spell usage AI is completely hard coded. It might help to start a script that does nothing though.
07-31-2004, 04:45 PM#4
Vexorian
Quote:
Originally Posted by AIAndy
Actually they should use their spells but the spell usage AI is completely hard coded. It might help to start a script that does nothing though.
it helped me, the only spell that isn't automatically used by the internal unit ai is channel, but later if you want them to use the spells in specific situations it is better to have triggers and orders.