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.
I changed around the Else - Actions a little bit and it works fine now.
Do NOT double-post. Use the Edit button.
~Posts Merged
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>
-
-
-
-
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>)
-
Do NOT double-post. Use the Edit button.
~Posts Merged
Last edited by a moderator: