ForceUICancelBJ

Parameters
whichPlayer player
comment

Only call ForceUICancel locally for whichPlayer. Since this emulates a player's actions, it cannot desync, like if player pressed a keyboard button.

note

See: ForceUIKey, ForceUIKeyBJ

patch

1.00

return type
nothing
Source code
function ForceUICancelBJ takes player whichPlayer returns nothing
    if (GetLocalPlayer() == whichPlayer) then
        // Use only local code (no net traffic) within this block to avoid desyncs.
        call ForceUICancel()
    endif
endfunction
Source
Blizzard.j
wc3modding.com
ForceUICancelBJ