GetLocalizedHotkey
- Parameters
source string- comment
Returns the
integerhotkey for a specific game action à la"GAMEOVER_QUIT_GAME". You can look up potential values inUI\FrameDef\GlobalStrings.fdf.- note
To define own values you have to import a file named
war3mapMisc.txtinto your map. A samplewar3mapMisc.txtcould look like this:[Hotkeys] ,=44 !='!' A='A' B='B' C='C' // etc.See also https://www.hiveworkshop.com/threads/chrord.274579/.
- async
- This function is asynchronous. The values it returns are not guaranteed to be the same for each player. If you attempt to use it in an synchronous manner it may cause a desync.
- patch
1.00
- Source
- common.j (raise an issue to discuss on Github or submit a PR)
- return type
integer- Source code
native GetLocalizedHotkey takes string source returns integer