My Guide for Buildable Gates

storgaard

New Member
Reaction score
4
Hey, so after a long holliday, hundreds of threads i think im ready to share the way i found, ive seen meny other answer the same questions as me,
so i hope this will help!.

Step 1 making the units: First you make 1 unit based on the human unit farm
with change this: Abilities-none, grund texture=none, game interface= what ever you like,art model:Doodads\LordaeronSummer\Terrain\Gate\Gate.mdl
Recruied animation names:stand, art- shadow textures=ShadowStoneWall1
colision size:20,Pathing:magical pen wall and last placement recruies:grund pathable.

Now you go down under EDIT sufrace and post this into the field:Buildable Horizontal.

After this you got youre first unit, you now copy paste it into 6 units.

all with the name Gate but after go down and edit sufrance,

this shuld be the 6 names

Gate Buildable Horizontal
Gate Buildable Vertical
Gate (closed)(Horizontal)
Gate (closed)(Vertical)
Gate (Open)(Horizontal)
Gate (open)(Vertical)

after that you go into youre units and edit the despriptions so their fit do what the unit do. after that you change so that all that dosnt got the name Buildable Into it, you will change build speed to 1 so that they will open/close nearly instantly, you shuld also remove the gold/lumber cost of them, since it shuld´t cost to open close a gate ;)

Now you go into the units called (open)((Horizontal or Vertical))
and go down to Colision size and change it to 0
than you go to pathing - Doddads- Mushrooms>base< birds>base<..............
this is importent, since Mushrooms dosnt have a pathing, but its still a pathing. this is because if you try to upgrade a non pathing into a pathing youre game will crash.

after you have done this to both youre (Open)
you upload the file under this thread caled "vertical gate" You import this, restart World EDIT and put it into the field called Models in youre 3 gates called Buildable Vertical,Open vertical, and Closed Vertical.

now you add the 2 "Builable" gates to a worker.
than you go into upgrades to under youre buildable horizontal gate and makes it upgrade into youre Open horizontal gate, after you do so that youre open horizontal gate upgrades into youre closed horizontal gate, and youre closed horizontal gate upgrades into youre open horizontal gate.

you repeat this with youre Vertical gates(so it upgrades into the open,closed version of vertical gate.)

after you have done this you make this trigger:

Trigger:
  • Gate trigger
    • Events
      • Unit - A unit Finishes an upgrade
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Unit-type of (Triggering unit)) Equal to Gate (Open)(Horinzontal)
        • Then - Actions
          • Animation - Play (Triggering unit)&#039;s Death Alternate animation
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Unit-type of (Triggering unit)) Equal to Gate (Close)(Horinzontal)
        • Then - Actions
          • Animation - Play (Triggering unit)&#039;s stand animation
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Unit-type of (Triggering unit)) Equal to Gate (Close)(Vertical)
        • Then - Actions
          • Animation - Play (Triggering unit)&#039;s stand animation
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Unit-type of (Triggering unit)) Equal to Gate (Open)(Vertical)
        • Then - Actions
          • Animation - Play (Triggering unit)&#039;s Death Alternate animation
        • Else - Actions


and hopefully, youre gate shuld be working, if it dosnt tell me, because i might have made some mistakes in my guide ;)

at last i wanna say thanks to all those who have helped me on helpernet with coming this far :)
 

Attachments

  • GateVertical.mdx
    21.5 KB · Views: 91

HydraRancher

Truth begins in lies
Reaction score
197
This is the wrong forum, this forum is for people who require assistance, if you wish to post this as a tutorial, please look at the "Tutorial and Resources" section.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top