Destructible variables

ZachQuint

New Member
Reaction score
0
sorry, should rephrase that.


If (Elven Gate (Horizontal) 0001 <gen> Equal to --->Dead<---) then do (Unit Group - Order (Units in (Playable map area)) to Attack Marine 0001 <gen>) else do (Unit Group - Order (Units within 200.00 of (Center of Region 000 <gen>)) to Attack Elven Gate (Horizontal) 0001 <gen>)


The dead part, is what im trying to set in the variable.
 

tommerbob

Minecraft. :D
Reaction score
110
1. Create a new condition. The one you need is the first that pops up, "Boolean Comparison".

2. Click on the "(Triggering unit) is a Structure" link.

3. Scroll up to the very first option, it should say "Destructible - Destructible is Alive"
 

ZachQuint

New Member
Reaction score
0
actually one more thing that is off topic, i have made it so that after the gate is destroyed, units are supoosed to attack the single player inside, however nothing happens...


If ((Elven Gate (Horizontal) 0001 <gen> is dead) Equal to True) then do -->(Unit Group - Pick every unit in (Units owned by Player 11 (Dark Green)) and do (Unit Group - Order (Units owned by Player 11 (Dark Green)) to Attack Marine 0001 <gen>))<-- else do (Unit Group - Order (Units within 512.00 of (Center of Region 000 <gen>)) to Attack Elven Gate (Horizontal) 0001 <gen>)
 

tommerbob

Minecraft. :D
Reaction score
110
Should look like this:

Trigger:
  • If / Then / Else
    • If - Conditions
      • (Elven Gate (Horizontal) 0001 is dead) equal to true
    • Then - Actions
      • Unit Group - Pick every unit in (units owned by player 11) and do (actions)
        • Loop - Actions
          • Unit - Order (Picked unit) to attack Marine 0001
    • Else - Actions
      • Unit Group - Pick every unit in (units within 512.00 of Center of Region 000) and do (actions)
        • Loop - Actions
          • Unit - Order (picked unit) to attack Elven Gate (Horizontal) 0001


You need to read up on memory leaks as well. There are lots of tutorials around about that.
 

ZachQuint

New Member
Reaction score
0
i noticed, after waiting for a bit longer, whenever a new footman spawns, the rest of the footmen sitting at the gate will then go to attack the marine. can this be fixed with the loop action? how do i add it?
 
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