I'm not sure about using VA for it, but I have the following that works in an EDDI script:
I then check and use the dockComp and dockCompOn variables to do what I need. I'm fairly sure you can do something very similar to this in VA, at least the logic should be much the same. I'll look into it, but I'm sure someone will come along with a proper answer before I can, and if not, maybe you can figure it out from this before me.Code:{for compartment in ship.compartments: {if find(compartment.module.name, "Docking") > -1: {set dockComp to true} {if compartment.module.enabled: {set dockCompOn to true} } } }
I love you and I want to have your babies ;o)