OrderId2String
- Parameters
-
orderId integer
- bug
Always returns null after the game is loaded/if the game is a replay.
- bug
Do not use this in a global initialisation (map init) as it returns null there.
- comment
Returns the human-readable unit order string.
Example (Lua):
OrderId2String(851995) --> returns "humanbuild" (opens human build menu)
- note
See:
OrderId
- pure
- This function is pure. For the same values passed to it, it will always return the same value.
- return type
string
- Source code
constant native OrderId2String takes integer orderId returns string
- Source
- common.j
- wc3modding.com
- OrderId2String