TriggerRegisterAnyUnitEventBJ

Parameters
trig trigger
whichEvent playerunitevent
comment
patch

1.07

Source
Blizzard.j
return type
nothing
Source code
function TriggerRegisterAnyUnitEventBJ takes trigger trig, playerunitevent whichEvent returns nothing
    local integer index

    set index = 0
    loop
        call TriggerRegisterPlayerUnitEvent(trig, Player(index), whichEvent, null)

        set index = index + 1
        exitwhen index == bj_MAX_PLAYER_SLOTS
    endloop
endfunction