I haven't analyzed spawning functions or your mod yet but "flight_group:Escort(ship);" function isn't enough? When you can spawn group of fighters this function should be enough to attach them to big ships. It's probably obvious to you but you can try analyzing functions contain this code. If i don't know what to do I always start with something like this.
|