While working on a freighter wingman/auton mod I noticed the armor repairing itself when the freighter was docked at a station.
I'm assuming this is a game function that repairs NPC ships over time.
However it's not needed in this mod but I don't know how to shut it off.
Does anyone know where the auto-repair code is or if there is an attribute or data that can be set to cancel this?
self-repairing armor on NPCs query
- 0xABCDEF
- Militia Lieutenant
- Posts: 124
- Joined: Thu May 19, 2016 12:58 am
- Location: Was destroyed by a Phobos-class dreadnought in the Eridani system
Station dock auto-repair is defined by one of two attributes on the StationType: shipRegen or shipRepairRate. The ship repair seems to ignore all armor attributes except maxHP.
It appears that the only way to disable these attributes is to override the StationType.
It appears that the only way to disable these attributes is to override the StationType.
-Command Screen Library: RTS in a dockscreen
-Extended Justice: A safer Commonwealth for all
-Playership Bones: Revisit your old ship wrecks!
-Please help out our official Documentarist (me) by editing the wiki
-Extended Justice: A safer Commonwealth for all
-Playership Bones: Revisit your old ship wrecks!
-Please help out our official Documentarist (me) by editing the wiki