Warcraft III resources & community, 2003–2006 · archived

RectMakeTemporary

not rated
Submitted by PepparVariable Change0 downloads
See GroupMakeTemporary for description.

I haven't tested this function in-game, but the syntax is ok, and it *should* work.

Source

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
endfunction

Comments

0

No comments.