Initial Upload
Initial Upload
This commit is contained in:
31
_module/nss/opensiblingexit2.nss
Normal file
31
_module/nss/opensiblingexit2.nss
Normal file
@@ -0,0 +1,31 @@
|
||||
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);
|
||||
|
||||
}}
|
||||
|
||||
Reference in New Issue
Block a user