GetObjectCost¶
Read object cost from current game state.
GetObjectCost(objectType[, multiplier = 1])
Inputs: objectType is a required integer UnitObjectType ID; multiplier is an optional numeric cost multiplier (default 1).
Output: costs, available: array of positive object costs and read availability.
Errors and unavailable states: Wrong argument types can raise a Lua argument error. If available is false, ignore the first return value; it is not a confirmed result.
See Game data and world for related calls and usage notes.