TriggerRegisterPlayerSelectionEventBJ

Parameters
trig trigger
whichPlayer player
selected boolean
comment
patch

1.00

Source
Blizzard.j
return type
event
Source code
function TriggerRegisterPlayerSelectionEventBJ takes trigger trig, player whichPlayer, boolean selected returns event
    if selected then
        return TriggerRegisterPlayerUnitEvent(trig, whichPlayer, EVENT_PLAYER_UNIT_SELECTED, null)
    else
        return TriggerRegisterPlayerUnitEvent(trig, whichPlayer, EVENT_PLAYER_UNIT_DESELECTED, null)
    endif
endfunction