Train 2 units instead of 1?

Mabaet.Baet

Member
Reaction score
2
Why are you not using this function to create another unit?
Trigger:
  • Unit - Create 1 Footman for Player 1 (Red) at (Center of (Playable map area)) facing Default building facing (270.0) degrees
 

KaerfNomekop

Swim, fishies. Swim through the veil of steel.
Reaction score
613
Trigger:
  • Set TempPoint = (Position of (Trained unit))
    • Unit - Create 1 Zergling for Player 11 (Dark Green) at TempPoint facing Default building facing degrees
    • call RemoveLocation (udg_TempPoint)
    • Set TempPoint = (Center of Region 001 <gen>)
    • Unit - Order (Last replaced unit) to Attack-Move to TempPoint
    • Unit - Order (Last created unit) to Attack-Move to TempPoint
    • call RemoveLocation (udg_TempPoint)

The setting and removing of TempPoint are to avoid memory leaks. You can read more about them here.
 

Bladezor

You can change this now in User CP.
Reaction score
0
Trigger:
  • Set TempPoint = (Position of (Trained unit))
    • Unit - Create 1 Zergling for Player 11 (Dark Green) at TempPoint facing Default building facing degrees
    • call RemoveLocation (udg_TempPoint)
    • Set TempPoint = (Center of Region 001 <gen>)
    • Unit - Order (Last replaced unit) to Attack-Move to TempPoint
    • Unit - Order (Last created unit) to Attack-Move to TempPoint
    • call RemoveLocation (udg_TempPoint)

The setting and removing of TempPoint are to avoid memory leaks. You can read more about them here.

Thanks for the help :D
 
General chit-chat
Help Users

      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