Hello hello!
Here I got yet another question I was wondering about!
Here I got this script:
void main()
{
object oTarget;
object oSpawn;
// Get the creature who triggered this event.
object oPC = GetEnteringObject();
// Only fire for (real) PCs.
if ( !GetIsPC(oPC) || GetIsDMPossessed(oPC) )
return;
// Abort if the PC is not exactly at stage 11 of journal quest "p012".
if ( GetLocalInt(oPC, "NW_JOURNAL_ENTRYp012") != 11 )
return;
// Spawn "creature014".
oTarget = GetWaypointByTag("WP_ELVIRAGHOST");
oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "creature014", GetLocation(oTarget));
}
So here is my question then!
Is it possible to put a check in there that if the npc is already spawned in there won't be another spawned in till its dead or after an ammount of time?