Name of sobgroup for deleting a ship in game?

I would like to be able to delete a ship in game via lua script. What is the name of that sobgroup function? Thank you!

I know how to do this, dont have time to figure out the code for a few days(dont have it memorized) . As soon as I surface again (after Xmas when family is gone) I would be happy to help you if you have not figured it out yet.

1 Like

SobGroup_Despawn followed by SobGroup_SetHealth should do the trick, no?

1 Like

i would be interested in this too except iā€™m looking to replace a captured vgr_carrier with a hgn_vgr_carrier

1 Like

This should do:

Volume_AddSphere(<sVolumeName>, SobGroup_GetPosition(<sSobGroupName>), <fRadius>)
SobGroup_SetHealth(<sSobGroupName>, <fHealth>)
SobGroup_SpawnNewShipInSobGroup(<iPlayerIndex>, <sShipType>, <sSquadronName>, <sSobGroupName>, <sVolumeName>)
1 Like

Thank you very much! :slight_smile: