Jump to content

Home

Script to remove an NPC


JebusJM

Recommended Posts

Thanks, TimBob, I'll try it later on tonight.

 

This script stops the party selection popping up when I recruit my NPC:

 

void main()

{

ActionPauseConversation();

object oGoodbye;

oGoodbye = GetObjectByTag("my_npc_tag");

SetGlobalFadeOut(1.0, 0.5);

DelayCommand(1.0, DestroyObject(oGoodbye));

DelayCommand(1.0,SetGlobalFadeIn(0.7,0.0));

ActionResumeConversation();

}

Link to comment
Share on other sites

The script gave me a few errors, but for others looking, I found this one to work perfectly:

 

void main()

{

object oGoodbye;

oGoodbye = GetObjectByTag("npc_tag_here");

DelayCommand(1.0, DestroyObject(oGoodbye));

}

 

Thanks TimBob.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...