HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Basic Unit AI question

09-02-2003, 02:51 AM#1
Brandus
I created a custom unit which is nothing special, I just took a quillbeast model and changed his HP a little bit, and unchecked his "Summoned" box in Unit Type (or is it Unit Classification).

How do i get these things to attack my Hero? They don't target him, they don't even fight back. They just sit there. I identified them as nuetral hostile, and i tried making them belong to Player 9, then making Player 9 treat player 1 as an enemy.

I'm not sure of the right triggers for giving them some intelligence. What AI scripts do i have to use? Am I missing a certain variable in the the Object Editor?
09-02-2003, 10:51 AM#2
AIAndy
Have you maybe accidently removed their attack or reduced the acquisition range to 0?
09-02-2003, 03:34 PM#3
Brandus
No, the quillbeast attack is completely unchanged, and the target acquisition range is 600. However, they refuse to move anywhere (unless I give them the wander ability).

I thought it would be pretty simple to get them to chase an enemy and be smart enough to attack without being attacked first. Do I need to put a region around each little quillbeast that tells them to attack?
09-02-2003, 03:59 PM#4
AIAndy
That is pretty strange because given to the neutral hostile player every unit with an attack should attack. It should not be necessary to give them an order by trigger.
AI scripts are only for strategic AI. They are useless in that situation.
Try to give that unit to yourself and check if you can attack with it.
09-03-2003, 03:18 AM#5
Brandus
Ok, when testing a map, make sure your hero doesn't have permanent invisibility! (Akama)
09-03-2003, 03:10 PM#6
c0nnick
Yea, could your hero be invulnerable?