Best Spawn Direction Method?

RedOrb

You can change this now in User CP.
Reaction score
14
Hi all,

The obvious spawn direction triggers are simply order unit to attack-move to point. But using this method, they sometimes give up and return to their create point. So what is the best way to keep them going towards their destination? Add them to unit groups which are headed towards their specific locations and re-order them every x seconds? Just want the best way ;)
 

Solu9

You can change this now in User CP.
Reaction score
216
If you are using neutral hostile you could change the gameplay constants -> creeps - guard distance, creeps - guard return distance, creeps - guard return time (sec).

Can you use that?
 

RedOrb

You can change this now in User CP.
Reaction score
14
Thanks Sol, but the units are owned by player 5 and 10 (not users). The main problem is that they sometimes deviate from their course, perhaps if they are interrupted by an attack or something.
 

Solu9

You can change this now in User CP.
Reaction score
216
Yeah I have had that problem as well.

What you can do is make a periodic trigger:

Trigger:
  • Move
    • Events
      • Time - Every 10.00 seconds of game time
    • Conditions
    • Actions
      • Set TempPoint_1 = (Center of (Playable map area))
      • Set TempUnitGroup_1 = (Units in (Playable map area) owned by Player 5 (Yellow))
      • Unit Group - Pick every unit in TempUnitGroup_1 and do (Actions)
        • Loop - Actions
          • Unit - Order (Picked unit) to Attack-Move To TempPoint_1
      • Custom script: call RemoveLocation(udg_TempPoint_1)
      • Custom script: call DestroyGroup (udg_TempUnitGroup_1)


Depending on how many units you are planing on ordering at the same time this should work.
 

vypur85

Hibernate
Reaction score
803
Change the values in the Gameplay Constant to a high value anyways. Just in case.

Other than that, it's advisable to use more regions to guide your creeps along the path.
 
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