[skip|else] if [not]|while [not]| = The possible 'conditional' statements that can be used with this command.
<RetVar/IF> = variable where the requested information is put
<RefObj> = The object you want to check
This function returns the class of an object. It works for all objects including but not limited to ships, sectors, asteroids, stations, flying wares.
If the <RefObj> doesn't exists, the result in <RetVar/IF> will be null
$my.class = [PLAYERSHIP] -> get object class
write to player logbook $my.class
This example will write the class of the ship piloted by the player in the logbook.
<RetVar/IF> = <RefObj> -> if of class <Var/Class>
List of Ingame Object Classes.
- »» General Object Commands
<RetVar/IF><RefObj> get object class