Destroying an npc (any object I suppose)

killap

Bear Dude
Moderator
Modder
I have searched the forum a few times and came up blank on this. This info may be somewhere deep the abyss of threads, but I still could not find what I wanted. Here goes: :D

I am trying to have a party member give me all his items in his inventory, remove himself from my party and then disappear. The problem is that the npc never disappears. The npc's items do indeed appear in my inventory and the npc does indeed become removed from my party. He no longer follows me and if I talk it is like we just met. Still, he does not disappear. Here is the code that I use to do all of this. I am using "destroy_object(Myron_Ptr)" to destroy the npc but nothing happens. This occurs with any npc that I try. Any ideas?

Code:
         if (critter_is_armed(Myron_Ptr)) then begin 
            inven_unwield(Myron_Ptr); 
         end 
         move_obj_inven_to_obj(Myron_Ptr, dude_obj); 
         // remove & destroy Myron 
         party_remove(Myron_Ptr); 
         destroy_object(Myron_Ptr);


Thanks a million in advance for any input.
 
Not 100% sure, but you may need to use the fadein and fadeout commands when using the destroy command.

Something like:

fadeout(600)
destroy_object(Myron_Ptr);
fadein(600)


Check the Military Base cavein removing script, or the Officer Jack script in NCR for an example.
 
Another thing I think is done in some scripts is to move the object to a hex well offscreen and then bump it off. Don't know why this should be necessary, though.
 
Back
Top