Shadow
TH.net Regular
- Reaction score
- 23
JASS:
function ChangeColor takes nothing returns nothing
call SetUnitColor( GetEnumUnit(), PLAYER_COLOR_GREEN )
endfunction
function ZhugeLiang takes nothing returns nothing
call ForGroup( armies_Army[5], function ChangeColor )
endfunction
//===========================================================================
function onInit takes nothing returns nothing
local trigger t = CreateTrigger()
call TriggerAddAction( t, function ZhugeLiang )
endfunction
Trying to make it so on initialization every unit in the unit group armies_Army[5] changes there color to green. I assigned all the units in a separate trigger. I know the problem is in this trigger posted above.