[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 homesector of the specified <RefObj>. If <RefObj> doesn't have a homesector or doesn't exist, it will return null.
The homesector is only relevant on NPC ships controlled by default vanilla job scripts. It usually points to the sector where the ship spawned. As an example it is used by the patrol scripts to prevent ships from going too far away from their homesector.
Example
- if $ship -> get homesector
| write to logbook "the ship has a homesector"
end
- »» General Object Commands
<RetVar/IF><RefObj> get homesector