unknownhero2827 Posted July 5, 2014 Share Posted July 5, 2014 (edited) Begin OnDeath MoveTo MercTrashcanMarker00 End That's the script, attached to an NPC. When the NPC dies, it moves to the marker on death. But when I use coc to the marker location, the body is not there. If I resurrect it, it appears. Though If I kill it again, it doesn't spawn right at the marker, it just stays at the same spot. That's not my problem at the moment though. If I am already at the marker location, then kill the npc in a different location, the body moves to the marker and I can see it spawn, just as I wanted. The NPC is not set to respawn. So why can't I see the body when I move to the marker location after the NPCs death? I do use some cleanup mods to help with lag. Maybe one of those is hiding the body when it goes to a new location? Edited July 5, 2014 by unknownhero2827 Link to comment Share on other sites More sharing options...
mhahn123 Posted July 5, 2014 Share Posted July 5, 2014 Well I'm not the person to give advice with scripting...still having some troubles myself on that end. But as for testing something....I always test mods with a plain vanilla install and save game...nothing else running except the official update patch. This way you know 100% that the results you get are what they are...and nothing else is influencing things. Link to comment Share on other sites More sharing options...
The_Vyper Posted July 5, 2014 Share Posted July 5, 2014 Your "cleanup mods" may very well be getting rid of the body. One way to test this is to make your NPC a "Quest" item (there's a box you can select for this when editing the NPC). Quest items are not "cleaned up" when a cell resets. Link to comment Share on other sites More sharing options...
unknownhero2827 Posted July 6, 2014 Author Share Posted July 6, 2014 @The_Vyper, Sorry for posting twice. I wasn't sure whether to post in mod talk or troobleshooting, I think troobleshooting is where I want to be. My NPC is a quest item. Does that mean it can never be deleted, even If I use resetinterior? Link to comment Share on other sites More sharing options...
unknownhero2827 Posted July 6, 2014 Author Share Posted July 6, 2014 http://forums.nexusmods.com/index.php?/topic/1876655-need-help-with-simple-script/ Continue discussion here if you wish to reply. Link to comment Share on other sites More sharing options...
Recommended Posts