Functions Documentation
View Function Edit Function
Name sysFindObject
Syntax (sysFindObject source criteria)
Argument List source: The spaceObject you want to use as base for some of the criteria. If you pass in Nil, the center of the system will be used.
criteria: The criteria that limits what type of objects to find.
Returns list: A list of all the space objects in the current system that match the criteria or Nil. Note that if "N" was in the criteria you wont get a list in return but just a single value.
Category system, spaceobject, 0.99
Description Returns a list of space objects in the system that match the criteria.
(sysFindObject gPlayerShip "Ts")

Gives you a list of all structure-scale stations and ships.
Comment For a list of criteria see the wiki: