doctorzero0 Posted May 14, 2016 Share Posted May 14, 2016 I'm relatively new to modding, so I was curious--is there a script that has an NPC spawn on the death of another? Any answer would be appreciated. Link to comment Share on other sites More sharing options...
WastedTimeYT Posted May 14, 2016 Share Posted May 14, 2016 Yes, and it's pretty easy. But it does depends, do you want to spawn the npc at a specific location or at the place where the npc died. You can also make the npc spawn a specific amount away from the dead npc. Link to comment Share on other sites More sharing options...
sullyvanj93 Posted May 14, 2016 Share Posted May 14, 2016 make your first NPC (the one that will die) and place him where you want him. make your second NPC and place him where you want him to spawn. on his REF, make him initially disabled. create a script for your first NPC and instead of beginning on gamemode, use on death. then make the script enable your second NPC. Link to comment Share on other sites More sharing options...
WastedTimeYT Posted May 14, 2016 Share Posted May 14, 2016 (edited) Well an more efficient way of doing that would be to make a xmarker that is always enabled, and instead of making the npc enabled simply make a script begin ondeath like thisScn deathscriptBegin ondeathXmarkerREF.placeatme MyNpcEnd This script would be put on the npc that will die. Edited May 14, 2016 by WastedTimeYT Link to comment Share on other sites More sharing options...
doctorzero0 Posted May 15, 2016 Author Share Posted May 15, 2016 That was fast...still, thanks for the tip, WastedTimeYT. I'll give it a shot. Link to comment Share on other sites More sharing options...
doctorzero0 Posted May 22, 2016 Author Share Posted May 22, 2016 Looks like it works! Thanks. And just one more thing--is there a script that clears up corpses after a fight? Just curious. Link to comment Share on other sites More sharing options...
Recommended Posts