Ship
A Ship is a mobile object owned by a Faction. Ships have classes (XS/S/M/L/XL) and purposes (fight / trade / mine / transport / build).
A Ship contains:
- Crew β pilot, captain, engineer, marines, service crew.
- Cargo β inventory.
- Loadout β weapons, shields, engines.
What will be on this page (planned)
Section titled βWhat will be on this page (planned)β- Properties (~30):
.faction,.trueowner,.controllably,.isclass.ship_*,.hull,.shield,.cargo,.commander,.subordinates,.defaultorder,.currentorder,.hasorderloop, β¦ - Actions: create/destroy/set_owner/board/commandeer/add_units (drones).
- Libraries:
TransferShipOwnership,Spawn_Ship_Formation,FindShipMacroForCargo. - Events: destroyed/changed_owner/attacked/arrived_at_waypoint.
- Gotchas:
set_player_targetis same-cluster only; ProtectPositiondestinationrequires[sector, position]list format; cannot set<create_order default=true>with AttackInRange. - Examples: spawning + assigning order, proper ownership transfer, listening for hull damage, finding suitable cargo macro.