WoR_PRC8/_module/nss/hell_death_portl.nss

28 lines
378 B
Plaintext
Raw Permalink Normal View History

2025-04-03 11:49:34 -04:00
//Put this script OnDeath
void main()
{
object oPC = GetLastKiller();
while (GetIsObjectValid(GetMaster(oPC)))
{
oPC=GetMaster(oPC);
}
if (!GetIsPC(oPC)) return;
if (d100()>10)
return;
object oTarget;
object oSpawn;
location lTarget;
oTarget = oPC;
lTarget = GetLocation(oTarget);
oSpawn = CreateObject(OBJECT_TYPE_PLACEABLE, "plc_hell_portal", lTarget);
}