Hi! I am really new to computer AI. I am trying to make an attack wave go to a target unit after 20 seconds in game. I have set it up, but for some reason the attack units just sit there. Here is what I have:
Have you tried changing the "At most" phrase you use when doing the unit selection trigger? I would think "At least" would make more sense since it might not select anyone if the "any" amount is greater than 0.
It might be because you have the "Set Target" below the "Send Wave" action. They need a target to attack right? Try moving the "Set Target" action above the "Send Wave" action.
You need to initialize the AI for that player (Start Campaign AI For Player).
Get rid of the local variable, it's not needed.
I don't think the computer can actually select units. Just add a normal unit group to the wave (all units of player X in region, etc etc).
Target needs to be set before you send the wave.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Hi! I am really new to computer AI. I am trying to make an attack wave go to a target unit after 20 seconds in game. I have set it up, but for some reason the attack units just sit there. Here is what I have:
Have you tried changing the "At most" phrase you use when doing the unit selection trigger? I would think "At least" would make more sense since it might not select anyone if the "any" amount is greater than 0.
It might be because you have the "Set Target" below the "Send Wave" action. They need a target to attack right? Try moving the "Set Target" action above the "Send Wave" action.
You need to initialize the AI for that player (Start Campaign AI For Player).
Get rid of the local variable, it's not needed.
I don't think the computer can actually select units. Just add a normal unit group to the wave (all units of player X in region, etc etc).
Target needs to be set before you send the wave.