Spawning troops randomly in a region

Ishida

New Member
Reaction score
1
What i noticed from spawning 30 troops at a random location in a region is, it picks one point and spawns them all there.

Is there a way to make it spawn the 30 troops all in different random locations in the same region?
 

Slayer4000X2008

That guy from Canada
Reaction score
23
Trigger:
  • Melee Initialization
    • Events
      • Map initialization
    • Conditions
    • Actions
      • For each (Integer A) from 1 to 30, do (Actions)
        • Loop - Actions
          • Unit - Create 1 Footman for Player 1 (Red) at (Random point in (Playable map area)) facing Default building facing degrees


Just change any details you need to. basically this will create 30 units at 30 random points.
 

Ishida

New Member
Reaction score
1
This isn't working, originally it spawned like 2139572953 archers, so i though it was the code

For each (Int A) from 1 to 30, meaning it would loop 30 times, so then i tried to make it one to one, then it all spawned in one area.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top