I have a map where units spawn and get an order to attack a certain point on the map. Now i have this hero who can do the queenshockwave ability which knocks all units within a certain radius back. This will cause the units that orignally got the order to attack the point to loose that order.
Anyhow my question, am i able to somehow let the units resume their previous order once the knockdown of the queenshockwave is passed?
else they will just stand there.
gr,
i think i could fix it if i had an event that triggers when the unit that gets hit by the ability or gets the knockdown behavior or sometin.. suggestions very welcome!
I needed something like this in my tower defense. Every unit has a custom value that is used to indicate what they should be doing. When I need them to resume an order, i throw the unit as a parameter into this trigger and it figures out what that unit should do based on the combo of unit type and custom value, then directs the unit accordingly. It is a very manual approach, but it works.
I tried something like this, why doesnt it work? doesnt the ability target units?
IdleEventsUnit-AnyUnitusesQueen-QueenShockwaveatGeneric3-Executestage(Ignoresharedabilities)ActionsGeneral-If(Conditions)thendo(Actions)elsedo(Actions)If((Ownerof(Triggeringabilitytargetunit))isin(Playersonteam1))==TrueThenUI-Display"knows owner of targeted unit is on team 1"for(Allplayers)toChatareaGeneral-Wait5.0GameTimesecondsUnit-Order(Triggeringabilitytargetunit)to(AttacktargetingTeam2Spawn)(ReplaceExistingOrders)Else
Hey guys,
I have a map where units spawn and get an order to attack a certain point on the map. Now i have this hero who can do the queenshockwave ability which knocks all units within a certain radius back. This will cause the units that orignally got the order to attack the point to loose that order.
Anyhow my question, am i able to somehow let the units resume their previous order once the knockdown of the queenshockwave is passed? else they will just stand there.
gr,
i think i could fix it if i had an event that triggers when the unit that gets hit by the ability or gets the knockdown behavior or sometin.. suggestions very welcome!
@Rice87: Go
I needed something like this in my tower defense. Every unit has a custom value that is used to indicate what they should be doing. When I need them to resume an order, i throw the unit as a parameter into this trigger and it figures out what that unit should do based on the combo of unit type and custom value, then directs the unit accordingly. It is a very manual approach, but it works.
@SkrowFunk: Go
hey,
thnx for the reply, could you maybe be more specific on how you fixed this? i dont really understand, maybe you can show me the trigger?
@Rice87: Go
I tried something like this, why doesnt it work? doesnt the ability target units?
@Rice87: Go
nobody with any suggestions or examples on how to do this?
@Rice87: Go
Can you try picking each unit that's idle and give an order?