RectMakeTemporary
not ratedSee GroupMakeTemporary for description.
I haven't tested this function in-game, but the syntax is ok, and it *should* work.
I haven't tested this function in-game, but the syntax is ok, and it *should* work.
function RectMakeTemporary_Child takes nothing returns nothing
local rect r = bj_isUnitGroupInRectRect
call TriggerSleepAction(0)
call RemoveRect(r)
set r = null
endfunction
function RectMakeTemporary takes rect r returns rect
local trigger dispatcher = CreateTrigger()
set bj_isUnitGroupInRectRect = r
call TriggerAddAction(dispatcher, function RectMakeTemporary_Child)
call TriggerExecute(dispatcher)
call DestroyTrigger(dispatcher)
set dispatcher = null
return r
endfunctionNo comments.