Jump to content

Home

Making NPC dissapear


Mindtwistah

Recommended Posts

Now i don't know if this will work, I'm still learning my scripting, but give this a try:

 

void main () {

 // destroynpc.nss

 // This script will make an NPC vanish.

 object oNPC=GetObjectByTag("Bastila");    // Replace "Bastila" with your NPC's tag


 ActionDoCommand(SetCommandable(TRUE,oNPC));
 AssignCommand (oNPC,ActionDoCommand(DestroyObject(oNPC)));

}

 

I hope that works, which it should :).

Link to comment
Share on other sites

You can actually just do

void main(){
 DestroyObject( GetObjectbyTag( "Bastila" ) );
}

Though if you're looking to do it in a dialog, you can just call a_destroy and pass in the tag of the object.

 

Grrrr, whereas my scripts mostly are correct i always make them longer than they should be, grrr :lol:

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...