I actually forgot to mention in my main post that there are actually multiple buildings spawning different units and I need all those units to attack a structure.
So what I ended up doing, I am not sure if this is the best or most effective way to do this, but I created a new trigger and did this: Events
Unit - Any Unit creates a unit with ability Any or behavior Any Local Variables Conditions
(Owner of (Triggering unit)) == 15 Actions
Unit - Order (Created Unit) to (Attack targeting 'Attacking Point') (Replace Existing Orders)
Thanks for the reply as it helped me figure out how to set up the above trigger, now I don't know if that's the best way to do that but it works.
Hey guys I can not seem to figure this one out, I need some help!
I currently have a trigger set up to add a Effect to unit that will make that unit spawn 5 hydralisks every 5 seconds, that trigger is:
Environment - Execute 'Spawn Hydralisks' on 'Hydralisk Den' from player 1
The first ' ' is my effect and the second ' ' is the unit it's adding the effect too. This works with no problem, works just as intended.
However, now what I am wanting to do, is that when it spawns those 5 hydralisks, to then tell those 5 hydralisks to attack a command center, however if those hydralisks run into any enemies on the way, say a Marine, they will stop to attack the marine then carry on toward the command center, I want to issue a Attack order on the command center and have them attack any enemies they encounter.
I have tried playing around with the triggers but can't seem to find something that works.
Thanks for the help!
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I actually forgot to mention in my main post that there are actually multiple buildings spawning different units and I need all those units to attack a structure.
So what I ended up doing, I am not sure if this is the best or most effective way to do this, but I created a new trigger and did this:
Events
Unit - Any Unit creates a unit with ability Any or behavior Any
Local Variables
Conditions
(Owner of (Triggering unit)) == 15
Actions
Unit - Order (Created Unit) to (Attack targeting 'Attacking Point') (Replace Existing Orders)
Thanks for the reply as it helped me figure out how to set up the above trigger, now I don't know if that's the best way to do that but it works.
Hey guys I can not seem to figure this one out, I need some help!
I currently have a trigger set up to add a Effect to unit that will make that unit spawn 5 hydralisks every 5 seconds, that trigger is: Environment - Execute 'Spawn Hydralisks' on 'Hydralisk Den' from player 1
The first ' ' is my effect and the second ' ' is the unit it's adding the effect too. This works with no problem, works just as intended.
However, now what I am wanting to do, is that when it spawns those 5 hydralisks, to then tell those 5 hydralisks to attack a command center, however if those hydralisks run into any enemies on the way, say a Marine, they will stop to attack the marine then carry on toward the command center, I want to issue a Attack order on the command center and have them attack any enemies they encounter.
I have tried playing around with the triggers but can't seem to find something that works.
Thanks for the help!