So here's a problem I'm having, I've made a custom ability based off defend.
I then created this trigger:
In another trigger I check if that value is true or not:
And all works fine, until the casting unit (unit with defend) enters a transport. The moment they enter a transport something is happening that stops the second trigger from working. Should I be using another ability other than Defend to base it off of?
Any ideas?
I then created this trigger:
Trigger:
- On or Off
- Events
- Unit - A unit Is issued an order with no target
- Conditions
- (Owner of (Triggering unit)) Equal to (Owner of SpecialUnit <gen>)
- Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Issued order) Equal to (Order(defend))
- Then - Actions
- Set BoolActive = True
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Issued order) Equal to (Order(undefend))
- Then - Actions
- Set BoolActive = False
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Events
In another trigger I check if that value is true or not:
Trigger:
- Conditions
- (Owner of (Triggering unit)) Equal to (Owner of SpecialUnit <gen>)
- BoolActive Equal to True
And all works fine, until the casting unit (unit with defend) enters a transport. The moment they enter a transport something is happening that stops the second trigger from working. Should I be using another ability other than Defend to base it off of?
Any ideas?