Page 1 of 1

Conditional Sub-ents

Posted: Mon Jul 11, 2022 7:12 am
by Killer Wolf
Not sure if this has been asked before, but would it be possible to have sub-ents that could represent a specced-up ship depending on what equipment you buy? eg, buy the advanced space compass and there's an antennae intallation that appears? Maybe using the HUD plist "equipment required" sort of thing?

Re: Conditional Sub-ents

Posted: Mon Jul 11, 2022 7:36 am
by montana05
Killer Wolf wrote: Mon Jul 11, 2022 7:12 am
Not sure if this has been asked before, but would it be possible to have sub-ents that could represent a specced-up ship depending on what equipment you buy? eg, buy the advanced space compass and there's an antennae intallation that appears? Maybe using the HUD plist "equipment required" sort of thing?
While you can remove a specific sub it is currently only possible to restore all of them. Therefore, to add a sub depending on the equipment, a workaround is needed. When the ship is added, all subs need to be there. By checking the available equipment, you can then remove every sub for equipment not installed. A script should check the time the ship is spawned and the time when leaving the station to make sure that no new parts were bought.

EDIT: Added more detail

Re: Conditional Sub-ents

Posted: Tue Jul 12, 2022 8:03 am
by Killer Wolf
thanks for that, think i'll have to do a bit research/play.

Re: Conditional Sub-ents

Posted: Tue Jul 12, 2022 11:53 am
by Cholmondely
Have you seen Dertien's Z GrOovy HPC pack?
Has links to threads and other relevant oxp's

Landing Gear and other bits:
Image


Film: https://www.youtube.com/watch?v=FeLpZQI_a4M (shows how ship grows as new equipment is purchased)