SceneryObject#

SceneryObject represents fixed map scenery, such as bridges and buildings, that are not placed via the Mission Editor’s unit/static object systems. It extends Object directly (it is not a CoalitionObject, since scenery does not belong to a coalition).

class SceneryObject#

Inherits all member functions of Object.

Static functions#

static getDescByName(typeName)#

Returns a description table for a scenery object type.

Parameters:

typeName (string) – Scenery object type name.

Returns:

Description table.

Return type:

table

Member functions#

getLife()#

Returns the scenery object’s current hit points.

Returns:

Current life.

Return type:

number

Footnotes#

  • SceneryObject instances are typically obtained via world.searchObjects() (filtering by Object.Category.SCENERY) or from the target/initiator fields of events like on_hit/on_death, rather than a name-based lookup.