OrderId

Parameters
orderIdString string
comment

Returns an internal ID for the unit order string.

Example (Lua):

OrderId("humanbuild") == 851995 -- this order opens the human build menu
note

See: OrderId2String

bug

Do not use this in a global initialisation (map init) as it returns 0 there.

bug

Orders: humainbuild / orcbuild / nightelfbuild / undeadbuild are totally broken, don't issue them.

pure
This function is pure. For the same values passed to it, it will always return the same value.
patch

1.00

Source
common.j
return type
integer
Source code
constant native OrderId                     takes string  orderIdString     returns integer