GetLocalizedHotkey
- Parameters
-
source string
- comment
Returns the
integer
hotkey 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.txt
into your map. A samplewar3mapMisc.txt
could 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
- return type
integer
- Source code
native GetLocalizedHotkey takes string source returns integer