Skip to content

GetObjectTypeData

Read object type data from current game state.

GetObjectTypeData(objectType, dataId)

Inputs: objectType is an integer UnitObjectType ID; dataId is an integer ObjectData ID.

Output: Integer object-data value, or 0.

Errors and unavailable states: Wrong argument types can raise a Lua argument error. This call has no separate error return; check the live game state before depending on its result.

See Low-level queries for related calls and usage notes.