You can specify an escape pod with the escape_pod_model attribute (which takes a role, not a model file name), and you can remove a subentity using something like this in the escape pod’s ship script:Simon B wrote:I'm thinking that the bulk of the ship is the main body, with the smaller craft/detachable command section as a subentity... but also as an ship in it's own right. I can specify it as an escape pod so an NPC can eject in it ... though I'd need to script leaving a partial-ship model behind - doable?
Code: Select all
if (self.owner && self.owner.subEntities[0] && self.owner.subEntities[0].primaryRole == "neoboa_skiff") // 0 == first item in list
{
self.owner.subEntities[0].remove();
}