| 07-14-2003, 05:18 AM | #1 |
Hey all. Anyway... I was working on my map and I added a door that opens and closes. When I was testing with it I found out that everytime I destroyed the door the game would automatically regenerate another door in its stead. I did not want that so I added a trigger that removes the door on death. Now everytime I kill the door Warcraft crashes to the desktop. Heres the trig for opening and closing the door: Code:
Events: Unit - A unit leaves Door 1 <gen> Unit - A unit enters Door 1 <gen> Conditions: ((Owner of (Triggering unit)) is in (All players)) Equal to True Actions: If ((Elven Gate (Horizontal) 0008 <gen> is dead) Not equal to True) then do (Destructible - Open Elven Gate (Horizontal) 0008 <gen>) else do (If (((Units in Door 1 <gen> owned by (Owner of (Triggering unit))) is empty) Equal to True) then do (Destructible - Close Elven Gate (Horizontal) 0008 <gen>) else do (Do nothing)) Here is the trig for removing the door: Code:
Events: Destructible - Elven Gate (Horizontal) 0008 <gen> dies Conditions:(none) Actions: Destructible - Remove Elven Gate (Horizontal) 0008 <gen> In my trig or really a bug? Oh and also the only thing edited about the door in the object editor is the doors hit points. Thanks, BeyondFerocity |
| 07-14-2003, 05:23 AM | #2 |
Your trigger confused me a bit, because I don't know how its laid out. But, would it be possible to just disable the trigger when the door is destroyed instead of trying to remove the door? |
| 07-14-2003, 05:29 AM | #3 |
Great idea! Things are all patched up. |
