• 🏆 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!

Open/Close Gate Collision Problem

Status
Not open for further replies.
Level 2
Joined
Aug 2, 2008
Messages
7
Hi guys, I'm having a bit of problem with my gate. I used the code below to make a tower open/close a specific gate on command but whenever I open/close it a time or two, there will be no collision when it's closed, so units can just walk through and see through it.

So.. I need to know if it's the code or some other thing doing it. Thank you in advance.

Oh, and it's my first time posting, so I may not know how to copy code correctly into this forum.

  • Events
    • Unit - Tower 0055 <gen> begins casting an ability
  • Actions
    • If(All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • -Boolean Equal to True
      • Then - Actions
        • -Destructible - Set life of Ruined Gate (Horizontal) 0048 <gen> to Doorlife
          • -Destructible - Close Ruined Gate (Horizontal) 0048 <gen>
          • -Set Boolean = False
      • Else - Actions
        • -Set DoorLife = (Current life of Ruined Gate (Horizontal) 0048 <gen>)
          • -Set Boolean = True
          • Destructible - Open Ruined Gate (Horizontal) 0048 <gen>
Okay, I fixed the problem though I don't understand how/why the problem existed in the first place.

I changed around the Else - Actions a little bit and it works fine now.

  • Else - Actions
    • -Destructible - Open Ruined Gate (Horizontal) 0048 <gen>
    • -Set Boolean = True
    • -Set DoorLife = (Current life of Ruined Gate (Horizontal) 0048 <gen>)
Anyone know why this problem occured? I'd like to not run into something like this in the future, I spent a few hours on it. :[

Do NOT double-post. Use the Edit button.
~Posts Merged
 
Last edited by a moderator:
Status
Not open for further replies.
Top