• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!

[Trigger] How to make a door, that opens and closes that lets units through?

Status
Not open for further replies.
Level 6
Joined
Apr 23, 2009
Messages
94
I mean i know there are doors in the Doodad section, and i have a custom door model i want to use, but i can't seem to make a door that opens and closes when you get near or out of its range.
Also, my units can't go through it.
Is there something i'm missing?
  • Untitled Trigger 035
    • Events
      • Unit - A unit enters Region 045 <gen>
    • Conditions
    • Actions
      • Animation - Play Wooden Door 0012 <gen>'s Stand alternate animation
      • Unit - Turn collision for (Entering unit) Off
That's the best i could come up with, and it doesn't work.
 
Level 13
Joined
Nov 22, 2006
Messages
1,260
Maybe you could send us the model or the map itself so we can take a look at it?

I think animations won't do good in this case, since it's the pathing that has to change, the door has to move. Even if the animation plays right, I don't think the unit will be able to pass through.
 
Level 7
Joined
Sep 5, 2006
Messages
334
  • door
    • Events
      • Unit - A unit enters Your Region <gen>
    • Conditions
    • Actions
      • Destructible - Open (Last created destructible)
and remember to close it if you don't want to leave it open.
 
Level 11
Joined
Feb 14, 2009
Messages
884
The Warchasers map has an amount of triggers controlling gates. Maybe you should take a look in it.
 
Level 16
Joined
Jul 21, 2008
Messages
1,121
You have to make it with two triggers.
Note that you can put extra conditions.

This trigger is MUI.
  • First
    • Events
      • Unit - A unit enters Region 045 <gen>
    • Conditions
    • Actions
      • Animation - Play Wooden Door 0012 <gen>'s stand animation
      • Animation - Add the alternate animation tag to Peasant 0000 <gen>
      • Unit - Turn collision for Wooden Door 0012 <gen> Off
  • Second
    • Events
      • Unit - A unit leaves Region 045 <gen>
    • Conditions
      • (Number of units in (Units in Door Region <gen>)) Equal to 1
    • Actions
      • -------- Note that condition counts door as unit --------
      • Animation - Play Wooden Door 0012 <gen>'s stand animation
      • Animation - Remove the alternate animation tag to Wooden Door 0012 <gen>
      • Unit - Turn collision for Wooden Door 0012 <gen> On
 
Status
Not open for further replies.
Top