Skip to content

Comments

Add Lua helper functions for moving InternalCrew#2724

Open
oznogon wants to merge 2 commits intodaid:masterfrom
oznogon:internal-crew-sugar
Open

Add Lua helper functions for moving InternalCrew#2724
oznogon wants to merge 2 commits intodaid:masterfrom
oznogon:internal-crew-sugar

Conversation

@oznogon
Copy link
Contributor

@oznogon oznogon commented Feb 18, 2026

  • Entity:getRepairCrew(): Returns a 1-indexed table of internal_crew entities assigned to this entity.
  • Entity:isValidCrewPosition(pos): Returns true if {x,y} falls within any internal room.
  • Entity:getInternalRoomForSystem(system): Returns the room containing a given ship system, if any.
  • Entity:getCoordinatesForInternalRoom(room): Returns a table of all {x,y} coordinates within a room.
  • Entity:moveRepairCrewToPosition(crew_index, pos): Moves a crew to a specific {x,y} position, if it's valid. Returns false if not
  • Entity:moveRepairCrewToRoom(crew_index, room): Moves a repair crew to a random position within a room.
Screen.Recording.2026-02-17.174443.mp4

- Entity:getRepairCrew(): Returns a 1-indexed table of
  internal_crew entities assigned to this entity.
- Entity:isValidCrewPosition(pos): Returns true if {x,y} falls
  within any internal room.
- Entity:getInternalRoomForSystem(system): Returns the room
  containing a given ship system, if any.
- Entity:getCoordinatesForInternalRoom(room): Returns a table of
  all {x,y} coordinates within a room.
- Entity:moveRepairCrewToPosition(crew_index, pos): Moves a crew to
  a specific {x,y} position, if it's valid. Returns false if not
- Entity:moveRepairCrewToRoom(crew_index, room): Moves a repair
  crew to a random position within a room.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant