Andrewgosu
The Silent Pandaren Helper
- Reaction score
- 716
I tried it. Still nothing. Does the fact count, I have the FloatingTextBase function in the maps header?
function ReviveHostile takes nothing returns boolean
return ( IsUnitEnemy(GetFilterUnit(), Player(PLAYER_NEUTRAL_AGGRESSIVE)) )
endfunction
function Trig_Revive_Dead_Hostile_Actions takes nothing returns nothing
local unit a = GetTriggerUnit()
local real x = GetHandleReal( a, "x" )
local real y = GetHandleReal( a, "y" )
local boolexpr e = Condition(function ReviveHostile)
local group g = CreateGroup()
loop
call PolledWait( GetRandomReal(35.00, 40.00) )
call GroupEnumUnitsInRange( g, x, y, 1000.00, e )
exitwhen ( IsUnitGroupEmptyBJ(g) == true )
endloop
call DestroyBoolExpr(e)
call DestroyGroup(g)
call CreateUnit( Player(PLAYER_NEUTRAL_AGGRESSIVE), GetUnitTypeId(a), x, y, GetRandomReal(0, 360) )
set a = null
set e = null
set g = null
endfunction