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.
SobGroup_Despawn followed by
SobGroup_SetHealth should do the trick, no?
i would be interested in this too except i’m looking to replace a captured vgr_carrier with a hgn_vgr_carrier
This should do:
Volume_AddSphere(<sVolumeName>, SobGroup_GetPosition(<sSobGroupName>), <fRadius>) SobGroup_Despawn(<sVolumeName>) SobGroup_SetHealth(<sSobGroupName>, <fHealth>) SobGroup_SpawnNewShipInSobGroup(<iPlayerIndex>, <sShipType>, <sSquadronName>, <sSobGroupName>, <sVolumeName>)
Thank you very much!