DragonComple
New Member
- Reaction score
- 1
JASS:
function GroupCheckCondition takes nothing returns nothing
call PauseUnit(GetEnumUnit(), true)
call SetUnitTimeScalePercent( GetEnumUnit(), 0.00 )
endfunction
function GroupActions takes nothing returns nothing
set udg_spherePoint = GetUnitLoc(GetEnumUnit())
set udg_sphereGroup[1] = GetUnitsInRangeOfLocMatching(400.00, udg_spherePoint, Condition(IsUnitType(GetFilterUnit(), UNIT_TYPE_MELEE_ATTACKER) != true() and GetFilterUnit() != udg_sphereCaster()))
call ForGroup(udg_sphereGroup[1], function GroupCheckCondition)
endfunction
function sphereLoopActions takes nothing returns nothing
call ForGroup(udg_sphereGroup[0], function GroupActions)
call RemoveLocation(udg_spherePoint)
endfunction
//===========================================================================
function InitTrig_sphereLoop takes nothing returns nothing
set gg_trg_sphereLoop = CreateTrigger( )
call DisableTrigger( gg_trg_sphereLoop )
call TriggerRegisterTimerEvent(gg_trg_sphereLoop, 0.01, true)
call TriggerAddAction( gg_trg_sphereLoop, function sphereLoopActions )
endfunction
I get a " Expected' " at
JASS:
set udg_sphereGroup[1] = GetUnitsInRangeOfLocMatching(400.00, udg_spherePoint, Condition(IsUnitType(GetFilterUnit(), UNIT_TYPE_MELEE_ATTACKER) != true() and GetFilterUnit() != udg_sphereCaster()))
Anyone got an idea?