IsObjectTypeAvailable¶
Check object type available in current game state.
IsObjectTypeAvailable(objectType)
Inputs: objectType is an integer UnitObjectType ID.
Output: Availability for the assigned player.
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 Game data and world for related calls and usage notes.