I heard that the trigger Random Suicide Missions (Run ai unit) makes them attack the closet enemy. I am making a zombie map and they are not moving. I even tried the trigger "Order" and they still don't attack, can someone please take a look at my map or tell me whats the problem.[attachmentid=22965]
u have to run that ai-script if the player has units.....
u use it when the computer has 0 units...
and use a preserve trigger
The Random Suicide Mission AI script will only run successfully when:
- the computer has units.
- the computer has an enemy target.
- usually requires preserve trigger.
Note that if you have hyper triggers, running the AI script without a timer condition or wait action will cause slow-attacking units to stop their attack animation before they attack.
I added a preserve trigger and it still does not work.
Do you have create units triggers? If so, try to place the units instead of creating them. That should work, else, I can't see where you went wrong.
Yes i made it create... but if i place them.. all of them will attack at once
The "create units" script shouldn't have an effect on the AI script if preserve trigger is present
If you only want a specific amount of units to attack, you could give the non-attacking units to a neutral player or create the attacking units for a separate computer player.
Take a look at it again. I preserved it and it still does not attack.
You have the AI script set to "Strategic Suicide Mission." Use "Random Suicide Mission" instead; it's more reliable.