Skip to content

Player:GetObjectsByClassDeadInclusive

Read objects by class dead inclusive for this player.

player:GetObjectsByClassDeadInclusive(unitClass)

Inputs: unitClass is an integer unit class ID.

Output: Object array. Same result as GetObjectsByClass.

Errors and unavailable states: A wrong receiver or argument type can raise a Lua argument error. No separate error result is returned. Query live state again when the entity may have changed.

See Lua values and game objects for lifetime and enum guidance.