Hello guys, this must be easy but I don´t know what I´m doing wrong...
I have a castle with a door, and two switchers, one for open and one for close it. The problem is:
- The gate doesn´t close becouse for the editor "gate open" is equal to "gate dead". So, if I delete the second condition in close trigger, if the gate is destroyed and the close switch is used the gate live again....
This is the triggers I'm using:
- Open Gate:
Events:
-Close Gate:
Events:
I have a castle with a door, and two switchers, one for open and one for close it. The problem is:
- The gate doesn´t close becouse for the editor "gate open" is equal to "gate dead". So, if I delete the second condition in close trigger, if the gate is destroyed and the close switch is used the gate live again....
This is the triggers I'm using:
- Open Gate:
Events:
Unit-Unit enters openSwitchRegion
Contitions:1.Triggerin unit is in units owned by player 1
2.Random destructible in gateRegion<gen> is alive equal to true
Actions:2.Random destructible in gateRegion<gen> is alive equal to true
Destructible - open random destructible in gateRegion
-Close Gate:
Events:
Unit-Unit enters closeSwitchRegion
Contitions:1.Triggerin unit is in units owned by player 1
2.Random destructible in gateRegion<gen> is alive equal to true
Actions:2.Random destructible in gateRegion<gen> is alive equal to true
Destructible - close random destructible in gateRegion