OrderId2String

Parameters
orderId integer
comment

Returns the human-readable unit order string.

Not all order IDs have a corresponding text string. Returns empty string in this case.

Example (Lua):

OrderId2String(851995) --> returns "humanbuild" (opens human build menu)
note

See: OrderId, GetIssuedOrderId

pure
This function is pure. For the same values passed to it, it will always return the same value.
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.

patch

1.00

Source
common.j
return type
string
Source code
constant native OrderId2String              takes integer orderId           returns string