• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Maximum unit capacity

Status
Not open for further replies.
Level 11
Joined
Jun 2, 2013
Messages
613
If by food cap, then yes. In gameplay constants you can change it to a maximum of 300. By default it is set to 100.

If you mean where it generates starting units during melee initilization then, no The number of units spawned cannot be changed. You would have to create additional units using other triggers.
 
Level 7
Joined
Aug 15, 2012
Messages
318
If that fails you can use this to create every unit.
JASS:
function Trig_Create_Unit_Test_Actions takes nothing returns nothing
//player 12 = neutral hostile set it accordingly. remember jass 0 = player 1
//N01T Unit Id, 10087 first coordinate in editor, -29915 second, leave 270
    call CreateUnit( Player(12), 'n01T', 10087, -29915, 270)
endfunction

//===========================================================================
function InitTrig_Create_Unit_Test takes nothing returns nothing
    set gg_trg_Create_Unit_Test = CreateTrigger(  )
    call TriggerAddAction( gg_trg_Create_Unit_Test, function Trig_Create_Unit_Test_Actions )
endfunction
Make sure it runs at initialization
 
Status
Not open for further replies.
Top