GetObjectTypeAttribute¶
Read object type attribute from current game state.
GetObjectTypeAttribute(objectType, attribute[, damageClass = 0])
Inputs: objectType is a required integer UnitObjectType ID; attribute is a required integer attribute ID; damageClass is an optional integer damage class ID (default 0).
Output: Numeric attribute 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.