In the code wich makes your NPC move from one waypoint to another, once your NPC reaches the last waypoint, simply call DestroyObject(<your npc object>). So, if the code is executed from one of the NPC event handlers, it would be: DestroyObject(OBJECT_SELF). If the NPC is controlled by another object, simply replace OBJECT_SELF by the variable referencing your NPC in code.
Kato
Modifié par Kato_Yang, 22 octobre 2011 - 12:14 .