antstubell Posted May 27, 2021 Share Posted May 27, 2021 I would like a way to remove a fallen NPC's weapon from the world so player can't pick it up when NPC dies. Guessing an OnDeath script here but don't know how to ensure that the dropped weapon disappears.Thanks for any help. Link to comment Share on other sites More sharing options...
IsharaMeradin Posted May 27, 2021 Share Posted May 27, 2021 Is this for a single specific NPC or for all NPCs in general?Is this to prevent player use of a specific weapon or all weapons in general? Also should be noted that USSEP changes things so that weapons remain part of the NPC inventory when dropped instead of left lying about after cleanup. No idea if that will solve your issue or not. Link to comment Share on other sites More sharing options...
antstubell Posted May 28, 2021 Author Share Posted May 28, 2021 It will be for a collection of NPCs - mannequins that come alive. Link to comment Share on other sites More sharing options...
IsharaMeradin Posted May 28, 2021 Share Posted May 28, 2021 Before they die, get their equipped weapon and store it. Then when they die, move said weapon to a different container or the void. But only if it is not equipped.See:OnCombatStateChangedGetEquippedWeaponOnDeathIsEquipped At least it is an avenue worth testing. No idea if it will do what you desire. Link to comment Share on other sites More sharing options...
Recommended Posts