Help to get max creeps in a area!

Kebabnisse

New Member
Reaction score
1
Hello

I need help with a thing for my hero arena.
Can someone tell me how to simply be a number of creep in one region?
I have a trigger that makes so creeps spawn when you enter a region. And i want so you cant spawn like 1000 creeps in one region.
it would be ok with like 40 creeps in a region.
how to make that?
PLease? :S
 

GetTriggerUnit-

DogEntrepreneur
Reaction score
129
Pick every units in xx region; if nunber of units in group is greather than 50 then pick random unit from group and kill unit.
 

Kebabnisse

New Member
Reaction score
1
i still dont understand
make a trigger picture so i can see, much easier that way please...
or can some1 else help me?
 

Scary Nachos

Castro flashing Gang Signs!
Reaction score
45
If you want the max amount of units in one spot, make sure and edit the
Stats - Collision Size
 

dudeim

New Member
Reaction score
22
Here is the trigger that should work

Trigger:
  • Events
    • every x seconds of game time // change the x to whatever number you want.
    • Conditions
    • (Number of units in (your region owned by the enemy player ))Greater than or equal to x // change x to what you want the max to be
    • Actions:
    • set Temp_Group = Units in region x //change the x to whatever your region is Temp_Group is a unit group variable use ctrl+b to enter the variable editor
    • Unit Group - Pick every unit in Temp_Group and do (Actions)
      • Loop - Actions
        • Unit - Remove (Picked unit) from the game
        • Custom script: call DestroyGroup(Temp_Group) //removes leak


this should do the job
if you have any questions just ask them

Dudeim
 
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