Warcraft 3 documentation
vJASS & Zinc Documentation
For the latest documentation about how it works vJASS and Zinc language layers for Warcraft III, please follow these links:
Jasshelper documentation - Zinc documentation - WC3 Optimizer documentation
This topic is the discussión abut the function ForceUICancel. You can see all the information about this function keyword HERE.

[functions] ForceUICancel No New Posts Jassdoc

Started by
City17

0 Members and 1 Guest are viewing this topic.

[functions] ForceUICancel
on: April 17, 2022, 04:06:52 PM

Emulates an ESCAPE key press internally, used to interact with UI, e.g. close F10 menu.

Bug: Does not work as expected if you use it to "Cancel" something on behalf of a player, like cancel research in the current building. Since it always sends the Escape key, it will break if hotkey layout was changed from classic to grid/custom in game settings. Explanation:
1. OldPlayer plays with classic hotkey layout, the Cancelling abilities are bound to Escape.
2. ModernPlayer plays with grid layout, the Cancelling abilities' hotkey depends on their position but it's usually V.
3. ForceUICancel() is sent to both players
4. OldPlayer executes a Cancel ability, nothing happens to ModernPlayer
5. The game doesn't desync because it thinks OldPlayer really pressed that key, and even though ModernPlayer did "press" it too, he didn't trigger Cancel for his unit.

Note: Does not trigger (physical) player key events, BlzTriggerRegisterPlayerKeyEvent



 

Started by moyack

Replies: 3
Views: 4322
Jassdoc

Started by Jedi

Replies: 5
Views: 14903
General Jass Discussion

Started by moyack

Replies: 40
Views: 59309
Jass Theory & Questions

Started by moyack

Replies: 0
Views: 697
Jassdoc

Started by moyack

Replies: 0
Views: 702
Jassdoc
Vivir aprendiendo.co - A place for learning stuff, in Spanish   Chaos Realm - The world of Game modders and wc3 addicts   Diplo, a gaming community   Power of Corruption, an altered melee featuring Naga and Demon. Play it now!!!   WC3JASS.com - The JASS Vault + vJASS and Zinc   Jetcraft - A Starcraft II mod   WormTastic Clan (wTc)   Warcraft RESOURCES Reforged: Modelos, mapas, proyectos y mas...