String2OrderIdBJ
- Parameters
-
orderIdString string
- return type
integer
- Source code
function String2OrderIdBJ takes string orderIdString returns integer local integer orderId // Check to see if it's a generic order. set orderId = OrderId(orderIdString) if (orderId != 0) then return orderId endif // Check to see if it's a (train) unit order. set orderId = UnitId(orderIdString) if (orderId != 0) then return orderId endif // Unrecognized - return 0 return 0 endfunction
- Source
- Blizzard.j
- wc3modding.com
- String2OrderIdBJ