[skip|else] if [not]|while [not]| = Possible 'conditional' statements that can be used
<RetVar> = variable where the requested information is put
<RefObj> = The object you want to check
Returns the homebase of the specified <RefObj>. If <RefObj> doesn't have a homebase or doesn't exist, it will return null.
Alternatively, when the script is running on the object you want to check you can use the [HOMEBASE] constant.
Example
- if $ship -> get homebase
| write to logbook "the ship has a homebase"
end
- »» General Object Commands
<RetVar><RefObj> get homebase