Skip to content

Sector

A Sector is a spatial unit in the X4 universe. Sectors contain Zones, Ships, Stations, Resource regions, Highways, and Gates.

The world hierarchy: Universe β†’ Cluster β†’ Sector β†’ Zone.

  • Properties: .cluster, .zones, .economy, .security, .owner, .trueowner, .ships, .stations, .resources, .adjacentsectors, .tags.
  • Actions: ownership changes, position calculations.
  • Libraries: FindSectorExitPoints, FindSectorEntryPoints, FindNearestEnemySectorForFaction.
  • Events: event_contained_sector_changed_true_owner (⚠ payload is cluster, not sector).
  • Examples: listing stations by faction, checking adjacent sectors.
  • Cluster β€” parent.
  • Zone β€” child.
  • Station β€” common contained object.
  • Ship β€” common contained object.