HiddenTradition_PRC8/_module/nss/ro_pl_vampcoffin.nss
2024-06-20 15:47:42 -04:00

32 lines
480 B
Plaintext

#include "nw_i0_plot"
void main()
{
object oPC = GetEnteringObject();
if (!GetIsPC(oPC)) return;
//make sure only one coffin is spawned per party
int CoffinDoOnce = GetLocalInt(oPC, GetTag(OBJECT_SELF));
if (CoffinDoOnce==TRUE) return;
SetPLocalInt(oPC, GetTag(OBJECT_SELF), TRUE);
// spawn Vampire Coffin
object oTarget;
object oSpawn;
oTarget = GetWaypointByTag("WP_VampCoffin");
oSpawn = CreateObject(OBJECT_TYPE_PLACEABLE, "sarco004", GetLocation(oTarget));
}