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#
SceneryObjectinstances are typically obtained viaworld.searchObjects()(filtering byObject.Category.SCENERY) or from thetarget/initiatorfields of events like on_hit/on_death, rather than a name-based lookup.