Command not spawning a building

cowmenace

New Member
Reaction score
22
this trigger is supposed to replace the building after it dies. This trigger displays "yay" 4 times, meaning that it recognizes everything and works properly until it is told to create 1 (building) at AAPoint[blah]

Trigger:
  • SAM site revival 2
    • Events
      • Unit - A unit Dies
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to SAM Missile Launcher
    • Actions
      • Game - Display to (All players) the text: yay
      • Set AAPoint[(Custom value of (Triggering unit))] = (Position of (Triggering unit))
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (1 Mid <gen> contains AAPoint[(Custom value of (Triggering unit))]) Equal to True
        • Then - Actions
          • Game - Display to (All players) the text: yay
          • Wait 30.00 seconds
          • Game - Display to (All players) the text: yay
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • OwnerofBase[2] Equal to True
            • Then - Actions
              • Game - Display to (All players) the text: yay
              • Unit - Create 1 SAM Missile Launcher for Player 1 (Red) at AAPoint[(Custom value of (Triggering unit))] facing Default building facing degrees
            • Else - Actions
              • Unit - Create 1 SAM Missile Launcher for Player 7 (Green) at AAPoint[(Custom value of (Triggering unit))] facing Default building facing degrees
        • Else - Actions
 

Ayanami

칼리
Reaction score
288
Hmm, try set the the variable for triggering unit rather than using "Triggering Unit"?
 

cowmenace

New Member
Reaction score
22
not the problem. as I said, the trigger works up until the very last command where it creates the building.
 

Ayanami

칼리
Reaction score
288
Hmm well since you're using Unit - Create 1 SAM Missile Launcher for Player 1 (Red) at AAPoint[(Custom value of (Triggering unit))] facing Default building facing degrees, Custom value of ("Triggering unit") is still used.
 
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