ForceUIKeyBJ
- Parameters
whichPlayer playerkey string- comment
Only call
ForceUIKeylocally for whichPlayer. Since this emulates a player's actions, it cannot desync, like if player pressed a keyboard button.- note
See:
ForceUICancel,ForceUICancelBJ- patch
1.00
- Source
- Blizzard.j (raise an issue to discuss on Github or submit a PR)
- return type
nothing- Source code
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