void main()
{

object oPC = GetLastKiller();

if (!GetIsPC(oPC)) return;

object oPortal = GetObjectByTag("EntryPortal");

object oSpawn;

object oTarget= oPC;
location lTarget;

object oMod = GetModule ();
int iDead = GetLocalInt(oMod,"gorgona_death");

if (iDead >= 3)
{
 DestroyObject(oPortal);
 DeleteLocalInt(oMod,"gorgona_death");
 GetLocation(oTarget);
 oSpawn = CreateObject(OBJECT_TYPE_PLACEABLE, "siblingexit", lTarget);
}
else
{
 iDead++;
 SetLocalInt(oMod,"gorgona_death",iDead);

}}