I can't make my spawns move.

l8rg8r

New Member
Reaction score
0
I cannot make the spawns move that i made, everything works except the spawns moving. It's kind of getting annoying... Please help.

*edit
it only lets me do "Last created Unit" not unit group..
 

Wummi

Just Relax and Smile!
Reaction score
58
After the Create Units action, add this trigger:

Order (Last created unit group) to Attack-Move to Center of Region 01.

That should make them move.
 

Wummi

Just Relax and Smile!
Reaction score
58
Yeah, it's under Actions. Look for "Unit Group-Issue order targeting a point" under Actions and then select Last Created Unit Group for the unit group ordered, and the point to be the center of a region.
 

Sneakster

Active Member
Reaction score
24
Don't forget memory leaks!

Trigger:
  • SpawnMove
    • Events
    • Conditions
    • Actions
      • Set SpawnLoc = (Center of (CreepSpawn))
      • Set Move1 = (Center of (MovePoint))
      • Set SpawnGroup = (Units in (CreepSpawn) owned by Neutral Hostile)
      • Unit - Create 10 Footman for Neutral Hostile at SpawnLoc facing Default building facing degrees
      • Unit Group - Pick every unit in SpawnGroup and do (Unit - Order (Picked unit) to Move To Move1)
      • Custom script: call RemoveLocation (udg_SpawnLoc)
      • Custom script: call RemoveLocation (udg_Move1)
      • Custom script: call DestroyGroup (udg_SpawnGroup)
 

Bogrim

y hello thar
Reaction score
154
Let's try this again.

Whenever you create several units with a BJ (unit - create (X>1) units), all the units are added to a new group variable automatically named "last created unit group". To avoid a memory leak, you need to link the BJ's handle to a group variable and then destroy the group with that variable.

Trigger:
  • Actions
    • Unit - Create 10 Footman for Neutral Hostile at SpawnLoc facing Default building facing degrees
    • Set Temp_Group = (Last Created Unit Group)
    • Unit Group - Pick every unit in Temp_Group and do (Unit - Order (Picked unit) to Move To Move1)
    • Custom script: call DestroyGroup( udg_Temp_Group )
 
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