Ok, now the real question. How do you determine if the gate is lowered or raised via triggers?
Team 1 Main Door
Events
Unit - Any Unit Enters a distance of 6.0 from Gate [48.00, 49.00]
Local Variables
Conditions
Actions
Unit - Order Gate [48.00, 49.00] to ( Open Gate) (Replace Existing Orders)
The above trigger opens the gate. I can't find a condition where it checks to see if gate I open or closed.
To be more specific, I want the door the lower when a unit approach it, then wait like 5 seconds or so, then close if no units are around.
That order for the specific gate works to open it, but I cannot find an order to close the gate. I loaded up the map from the campaign piercing the shroud to see how blizzard did it, but on their "shut door" triggers they have a no command/blank order issued and the gate closes... I tried copying that but it didn't work.
Ya that would work fine, the problem is, I can't find how to close the gate. I got it to open up, but not close. I don't see any action to close it. Driving me crazy
Unit - Order Unit to ( SpacePlatformDoorClose (Unnamed)) (Replace Existing Orders)
Unit - Order Unit to ( SpacePlatformDoorClose (Unnamed)) (Replace Existing Orders)
Unit - Order Unit to ( SpacePlatformDoorOpen (Unnamed)) (Replace Existing Orders)
Unit - Order Unit to ( SpacePlatformDoorOpen (Unnamed)) (Replace Existing Orders)
Unit - Order Unit to ( Temple Door Down (ULDR)) (Replace Existing Orders)
Unit - Order Unit to ( Temple Door Down (URDL)) (Replace Existing Orders)
Unit - Order Unit to (Purifier - Power Down) (Replace Existing Orders)
Unit - Order Unit to (Purifier - Power Up) (Replace Existing Orders)
Unit - Order Unit to (Purifier - Power Up) (Replace Existing Orders)
------- Comment
Unit - Order Unit to ( Open Gate) (Replace Existing Orders)
Unit - Order Unit to ( Open Gate) (Replace Existing Orders)
Unit - Order Unit to ( Open Gate) (Replace Existing Orders)
Unit - Order Unit to ( Open Gate) (Replace Existing Orders)
Unit - Order Unit to ( Open Gate) (Replace Existing Orders)
Unit - Order Unit to ( Open Gate) (Replace Existing Orders)
Unit - Order Unit to ( Open Gate) (Replace Existing Orders)
Unit - Order Unit to ( Open Gate) (Replace Existing Orders)
Unit - Order Unit to ( Open Gate) (Replace Existing Orders)
Unit - Order Unit to ( Open Gate) (Replace Existing Orders)
Unit - Order Unit to ( Open Gate) (Replace Existing Orders)
Unit - Order Unit to ( Open Gate) (Replace Existing Orders)
Unit - Order Unit to ( Open Gate) (Replace Existing Orders)
Unit - Order Unit to ( Open Gate) (Replace Existing Orders)
Unit - Order Unit to ( Open Gate) (Replace Existing Orders)
Unit - Order Unit to ( Open Gate) (Replace Existing Orders)
Unit - Order Unit to ( Open Gate) (Replace Existing Orders)
Unit - Order Unit to ( Open Gate) (Replace Existing Orders)
You need to create the close ability. Pretty rubbish tbh. Not that hard though. Just copy the open one and edit it to close it.
Ok. How do you do this? I don't understand how. Can you explain it please. I know how to copy the ability, but I don't know how to edit to to make it close :(
Ok after spending many hours, I finally got it to work. Jesus that was a pain in the ass. The open door is a morph command. You have to add the "close" ability to it's morphed unit for it to revert back to the original unit.
Hi Zero, I also spent the whole day on this annoying open/close gate subject.
I trigger my doors with a keystroke and they open perfectly. Closing is my big problem.
I did just as you wrote and created a new gate button and triggered it. But it isn't working. Guess the problem is somewhere in the Data Editor.
Zero, could you describe your solution in detail? Thank you very much
Hmm. Doesn't that mean that if you called Open Gate on an open gate, it'd close it? You don't even need a duplicate ability if what you're describing is true.
How do you make them open? I don't see any trigger to do it. There is also a total of 3 doors that I've found. Anyone know how?
@Zero0018: Go
You just play an animation on the doodad.
For most doors I think it's: Stand Morph Start ...to open the door and Stand Morph End ...to close the door.
EDIT: If you right click on a doodad on the terrain window, you can click "view in previewer." You can cycle through the animations for doodads here.
Thanks also figured out you can do the same thing with the units that a doors. You have to issue them an order to lower the gate.
Ok, now the real question. How do you determine if the gate is lowered or raised via triggers?
The above trigger opens the gate. I can't find a condition where it checks to see if gate I open or closed.
To be more specific, I want the door the lower when a unit approach it, then wait like 5 seconds or so, then close if no units are around.
That order for the specific gate works to open it, but I cannot find an order to close the gate. I loaded up the map from the campaign piercing the shroud to see how blizzard did it, but on their "shut door" triggers they have a no command/blank order issued and the gate closes... I tried copying that but it didn't work.
Who knows how to get this 2 work?!
@Zero0018: Go
It might be easier to just set a region on each gate. Then when the unit enters the region, open the gate, and when it leaves, close the gate.
Ya that would work fine, the problem is, I can't find how to close the gate. I got it to open up, but not close. I don't see any action to close it. Driving me crazy
None of these work:
Someone has to have figured this out....
You need to create the close ability. Pretty rubbish tbh. Not that hard though. Just copy the open one and edit it to close it.
Ok. How do you do this? I don't understand how. Can you explain it please. I know how to copy the ability, but I don't know how to edit to to make it close :(
I've been going threw multiple tutorials and watching videos and still cannot find how to make the door close. Can someone please help me?
Ok after spending many hours, I finally got it to work. Jesus that was a pain in the ass. The open door is a morph command. You have to add the "close" ability to it's morphed unit for it to revert back to the original unit.
Hi Zero, I also spent the whole day on this annoying open/close gate subject. I trigger my doors with a keystroke and they open perfectly. Closing is my big problem. I did just as you wrote and created a new gate button and triggered it. But it isn't working. Guess the problem is somewhere in the Data Editor. Zero, could you describe your solution in detail? Thank you very much
Ok, for starters look at the unit called Gate.
See how their is multiple units called Gate? Notice how their is a version of each one. So two units of the same Gate (facing same way).
Notice on some of the gate units, they have an ability called "Open Gate?"
Well, all you have to do, is find the OPEN version of the unit you want and add the "Open Gate" ability to that unit and it will work.
You don't even have to create an ability called close cause apparently they both work the same.
Hmm. Doesn't that mean that if you called Open Gate on an open gate, it'd close it? You don't even need a duplicate ability if what you're describing is true.
Right. The "open gate" already created one, works for closing and opening. You just have to add the ability to the unit of the open gate.
It finally works! I still don't understand why, but as long as it works, I am happy. Thanks