Gate help

sensesxfailx

New Member
Reaction score
0
Im trying to make a gate have an ability so that when you click on it the gate opens and then another one so that it closes but i dont know how to do it can anyone help me.
 
You cant, as you can't open a unit, it has to be a destructible, you can't add an ability but you could make a "Lever" and when clicked if the gate is open, it closes, if its closed, it opens

want me to show you how?
 
hmm nvm mythic is right (i just tried to prove him wrong, ((note to self - dont attempt to prove mythic fr0st wrong, proves to be a waste of time.))
so i think that lever is a good idea
 
alrite in the game castle builder you can build a gate and the gate has two abilities that can open and close the gate all im trying to do is that. so can somoone plz teach me how if they know how to.
 
Its not possible, the only way, would to use a dummy, or ask him

hmm nvm mythic is right (i just tried to prove him wrong, ((note to self - dont attempt to prove mythic fr0st wrong, proves to be a waste of time.))

How true, lol

it'd be annoying, unless you contact the maker of castle builder, well you can't

The only way off the top of my head I can think of

if you had two units, one had the ability "Close"
One had the ability "Open"

The one that had the ability "Open" would look like a closed gate
And the one that had the ability "Close" would look like an opened gate

This is only possible if you can find the art for the destructible gate "opened"

I know you can find them for "closed" as it is the normal stance for a gate

So make 2 units, Replace the model file for Unit1 to the normal gate (closed)
Make unit2 the model file to open gate...

Code:
   Event
      A unit begins casting an ability
   Conditions
   Actions
      if / then / else, multiple functions
         IF Conditions
                Ability being cast equal to Open Gate
         Then Actions
                 Replace casting unit with a Unit2 (Opened gate)
                 Turn off collision for last replaced unit
         Else
      if / then / else, multiple functions
         IF Conditions
                Ability being cast equal to Close Gate
         Then Actions
                    Replace casting unit with a Unit1 (Closed gate)

Its up to you to find the appropriate model file
 
Or maybe use
Code:
Animation - Play (Triggering unit)'s dead animation

And make the unit walkable?
 
Perhaps, yeah, that might work Mr Zero...

Make Unit2 (Walkable anyway)
 
Use this man:

event
A unit is selected
conditions
unit type of triggering/selected unit is equal to ancient gate
actions
if all conditions are true then do actions else do else actions
conditions
triggering unit is equal to gate1
loop actions
open gate1
else actions
close gate1
open gate2
 
Holy cow my eyes burn...

I never want to see fluro green again, lol

PS

A "Destructible" does not fall under the category of "Unit"

Therefore trigger will not work, unless Blizzard got lazy and shoved it all in one?

but I doubt it
 
General chit-chat
Help Users

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top