EPDGaffney Posted February 5, 2018 Share Posted February 5, 2018 (edited) The short version:My levelled list Death Item causes NPC's weapon to float in mid-air when he dies. This does not happen with other levelled lists as his Death Item. What am I missing? The super interesting juicy meaty details:Been trying to track down a bug in my mod after some recent changes, and it turns out that quite strangely enough, it was caused by having my custom levelled list as the bugged NPC's Death Item. I'm curious as to whether or not anyone is familiar with glitches involved with levelled items. Here's how it goes:This NPC was initially a duplicate of another raider-type NPC, probably a Viper, and there was a levelled item there for the death item, but I don't remember what it was. This has only started happening since making my own and using that. Since that time, if I kill this NPC and he has his weapon drawn, that weapon stays in mid-air when he dies, his hand retains the pose it would have if holding the weapon, the weapon in mid-air gives a mouse-over prompt to search the NPC's body, moving the NPC in any way (regardless of proximity to weapon) will cause the weapon to fall but still have the Search prompt, and moving the weapon in any way (only possible with the Grab/Z command) actually pushes and pulls the NPC's body. With incredible acceleration as well. I moved his knife a couple of metres and he got pushed to the other side of a mountain, and when I pulled it back he barrelled into the nearby house like a drunk race car. Removing the levelled list from his Death Item slot fixes the problem. There must be some rules I'm missing. He has armour and weapons already, but they're non-playable. His Death Item list was supposed to be the playable versions. Also, his helmet choice is decided by his level (his level is twice the player's but his is capped at 50), in a levelled list. I have a custom helmet that seems to work as intended, but the vanilla combat helmet always gets added twice if his level dictates it should be added once, one combat helmet at full health and one at the health I've set. If I take one from his body, both are removed and I get a single combat helmet in my inventory (I think I got only the one, at least). Similarly, one of his Death Item weapons gets added twice as well, and I can't remember how many got added to my inventory when I took that, but the game did force me to take both from him when I clicked once, whatever about how many it added to me afterwards. In case it's useful:https://prnt.sc/iaijkv Edit: I'm scripting his death item to work properly in an OnDeath block, but I'd still love to know what quirk I've happened upon. Also, his duplicated Combat Helmet, that's still a bit puzzling. Again, I can script it to function properly, but I shouldn't have to, at least as far as I know. Who knows, maybe I did something wrong. Edited February 5, 2018 by EPDGaffney Link to comment Share on other sites More sharing options...
Recommended Posts