[skip|else] if [not]|while [not]| = The possible 'Conditional' statements that can be used with this command.
<RetVar/IF> = Use a variable, if the command should return information. If a variable is used, it will contain a array filled with all stationary objects in the selected sector.
<RefObj> = A sector.
<Var/Boolean> = A TRUE or FALSE value or its representing number 1 or 0.
This command returns all stationary objects (objects that cannot move on their own) of the as <RefObj> selected sector. If "include asteroids" is set to TRUE, the array will also contain asteroids.
Example:
$sector=[PLAYERSHIP] -> get sector
$object.arr=$sector -> get all stationary objects: include asteroids=[TRUE]
return null
This will save all stationary objects in the current player sector in the array $object.arr.
Command Location:
- »» Universe and Sector Commands
<RetVar/IF><RefObj> get all stationary objects: include asteroids=<Var/Boolean>