Buildable gate

sheep

New Member
Reaction score
2
Hi
I whant to make a gate, witch got an ability, witch open and close the gate.
some of you maby played castle builder or something.. in that map there is sutch gate..
enyone got some idears..
 
Z

ZerO.Kitchen

Guest
pretty simple .
Make a dummy skill based on Defend .
Call it Open\Close.
Create a variable, call it CastleOpen
Then, trigger it :
Trigger 1
Events : a Generic unit initiates to transmit (or other) a spell
Conditions : "Spell being cast " equal to "Open\Close"
Actions : Put "CastleOpen=1"
Open "yourgate"



Then make this trigger
Trigger 2
Events : a Generic unit initiates to transmit (or other) a spell
Conditions : "Spell being cast " equal to "Open\Close" and " Castleopen = 1"
Actions : Put "CastleOpen=0"
Close "yourgate"




I havent tested it but it would function for only 1 gate.
 

sheep

New Member
Reaction score
2
everybody can make a gate.. but the hard part is that when a poen have build a gate..
for the gate to be build it have to be a unit.. and now do you make a unit act like a gate... that is the hard part.. :D
 
Z

ZerO.Kitchen

Guest
ok pretty simple.
Get a structure ( towers are the best)
then make his speed to 0
after that, disable attacks, change the agibility map to nothing.
now change the model.
Here are now your triggers

Events : a Generic unit initiates to transmit (or other) a spell
Conditions : "Spell being cast " equal to "Open\Close"
Actions : Put "CastleOpen=1"
Play <your gate>'s "Death" Animation
Turn collision off.



Then make this trigger
Trigger 2
Events : a Generic unit initiates to transmit (or other) a spell
Conditions : "Spell being cast " equal to "Open\Close" and " Castleopen = 1"
Actions : Put "CastleOpen=0"
Play <your gate>'s "stand" animation
Turn collision on
 

sheep

New Member
Reaction score
2
can a unit walk trought the gate now..???
and what abount the pathing..
under Pathing - Pathing Map..
is there eny was that i can fix that so it will fit..??
 
Z

ZerO.Kitchen

Guest
theorically it would enter when is opened, and block units when closed.
 

sheep

New Member
Reaction score
2
yes what about the Pathing - Pathing Map.
eny idear how i get the real gate pathing..??? you are doing so well :D
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      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