I dont have a photobucket account, but its a simple trigger so it should be enough..
Trigger 1
Events
Game - Map initialization
Local Variables
Conditions
Actions
AI - Start the campaign AI for player 15(value integer)
Trigger 2
Events
Periodic Event ( every 5 second game time)
Local Variables
Conditions
Actions
(Global Suicide) AI - suicide all player 15(value integer) units
----------------------
Idk why this doesnt work. the global suicide is described as "flags all units owned by a player to suicide. Units flagged to suicide will seek out and attack the nearest enemy unit until they are slain, or there is nothing left to attack."
I have a bunch of player 15 units that have huge vision range of like 250 and they should seek out any player in vision I would think. Their behavior does not change if I remove the triggers. They only agro the heroes if they are within like 6 or 7 range as usual.
I'll also note that I've looked at many AI tutorials, and all of them actually just issue orders. I wanted to use the actual "AI" and "Advanced AI" triggers
The original problem sounds like the player was not set to be a computer. The slot has to be a computer for it to work. Empty players, human players or natural players do not support AI so anything AI related will not work for them.
I dont have a photobucket account, but its a simple trigger so it should be enough..
Trigger 1
Events
Game - Map initialization Local Variables
Conditions
Actions
AI - Start the campaign AI for player 15(value integer)
Trigger 2
Events
Periodic Event ( every 5 second game time)
Local Variables
Conditions
Actions
(Global Suicide) AI - suicide all player 15(value integer) units
----------------------Idk why this doesnt work. the global suicide is described as "flags all units owned by a player to suicide. Units flagged to suicide will seek out and attack the nearest enemy unit until they are slain, or there is nothing left to attack."
I have a bunch of player 15 units that have huge vision range of like 250 and they should seek out any player in vision I would think. Their behavior does not change if I remove the triggers. They only agro the heroes if they are within like 6 or 7 range as usual.
@Matezius: Go
I'll also note that I've looked at many AI tutorials, and all of them actually just issue orders. I wanted to use the actual "AI" and "Advanced AI" triggers
I know this is an old thread, but has anyone of you found a solution for this? This would be so sweet (and performant) if this works somehow.
The original problem sounds like the player was not set to be a computer. The slot has to be a computer for it to work. Empty players, human players or natural players do not support AI so anything AI related will not work for them.