I have an npc that lures players to an area via waypoints. Once it reaches the last wp, how can I make it disappear?
Thank you
Modifié par Kato_Yang, 22 octobre 2011 - 12:14 .
void main()
{
object oEntering = GetEnteringObject();
if (GetTag(oEntering) == "TAG_OF_NPC")
{
DestroyObject(oEntering);
}
}
Fester Pot wrote...
Don't go making modifications to the stock NWN scripts unless you're prepared to create complications with every NPC that walks waypoints being destroyed at the end of their waypoint cycle.
Draw a trigger around the last waypoint this particular NPC walks.void main()
{
object oEntering = GetEnteringObject();
if (GetTag(oEntering) == "TAG_OF_NPC")
{
DestroyObject(oEntering);
}
}
FP!