Create unit at random region

jarekpl12

TH.net Regular
Reaction score
6
Hello... I have 4 regions and I want to create unit per every 2 mins at one of them (randomly). How I can make it? Thx
 

Solu9

You can change this now in User CP.
Reaction score
216
Two triggers:

Trigger:
  • Set Region
    • Events
    • Map initialization
    • Conditions
    • Actions
    • Set Spawn[1] = (Center of Spawn 1 <gen>)
    • Set Spawn[2] = (Center of Spawn 2 <gen>)
    • Set Spawn[3] = (Center of Spawn 3 <gen>)
    • Set Spawn[4] = (Center of Spawn 4 <gen>)


Trigger:
  • Random Region
    • Events
    • Time - Every 120.00 seconds of game time
    • Conditions
    • Actions
    • For each (Integer A) from 1 to 10, do (Actions)
    • Loop - Actions
    • Unit - Create 1 Footman for Player 1 (Red) at Spawn[(Random integer number between 1 and 4)] facing Default building facing degrees


Edit: Actually you want to do the spawn trigger like this instead.


Trigger:
  • Random Region
    • Events
    • Time - Every 120.00 seconds of game time
    • Conditions
    • Actions
    • Unit - Create 10 Footman for Player 1 (Red) at SpawnParty[(Random integer number between 1 and 4)] facing Default building facing degrees


The other will create 10 Footmen spread out in the four regions, whereas the new will spawn them all in the same region.
 
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