Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
I imagine it's because Computer players don't use hotkeys. They don't need input for their actions, they skip that layer and just go straight to the function.
It does not work because the choosen player is used for GetLocalPlayer() comparison. No LocalPlayer is equal to a Warcraft Bot
JASS:
function ForceUIKeyBJ takes player whichPlayer, string key returns nothing
if (GetLocalPlayer() == whichPlayer) then
// Use only local code (no net traffic) within this block to avoid desyncs.
call ForceUIKey(key)
endif
endfunction
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.