<RefObj> = The 'Ship' that the script is to be run on.
The <RefObj> refers to a specific ship.
The purpose of this command was to prevent the Player from repairing Plot or Unique ships.
It was how, in X3R, the Player captured Kha'ak ships could not be repaired.
Example:
* test command 'disable rebuild'
* get current sector
$Sector = [PLAYERSHIP] -> get sector
* create the test ship
$Testee = create ship: type= Argon Aamon Prototype owner=Player addto=$Sector x=35000 y=35000 z=0
* get the undamged hull
$MaxHull = $Testee -> get max hull
* compute a damaged hull
$DamagedHull = $MaxHull / 2
* damage the hull
$Testee -> set hull to $DamagedHull
* disable the rebuild
$Testee -> disable ship rebuild
return null
Testing Result : An Argon shipyard let me repair it in standard fashion . (i.e. lots of credits)
Note:
Apparently this command is disabled/non functional in X3TC v3.0
Comments and/or corrections are very welcome.
Command Location:
- »» General Object Commands
<RefObj> disable ship rebuild