Files
HeroesStone_PRC8/_module/nss/feyri_exit.nss
Jaysyn904 1eefc84201 Initial Commit
Initial Commit.
2025-09-14 15:40:46 -04:00

32 lines
540 B
Plaintext

// This will return the NPC to a starting position
// if he attempts to leave the trigger.
// You must replace "NPC_TALKER" with the tag of the NPC.
// You must also have a waypoint with the tag "WP_RETURN_" + NPC's Tag.
// This should be placed in the spot the NPC starts at.
void main()
{
string sTag = "feyri";
object oExit = GetExitingObject();
if(GetTag(oExit) == sTag)
{
AssignCommand(oExit,ClearAllActions());
AssignCommand(oExit,ActionMoveToObject(GetNearestObjectByTag("WP_RETURN_" + sTag)));
}
}