Skip to content

Object

Object is the root abstract class in the X4 engine class hierarchy. Almost every entity the modder interacts with β€” ships, stations, characters, wares, regions, components β€” inherits ultimately from object.

Most-used universal properties (from scriptproperties.xml):

  • .exists β€” boolean: does the reference resolve?
  • .macro β€” the object’s macro reference
  • .class β€” the object’s engine class
  • .isclass.{class.X} β€” is this object of a specific class?

Stub page β€” full property + inheritance reference coming.