• NPC Drop/Remove Weapon?
    2 replies, posted
I'm not sure if it's possible with maybe a schedule or an EngineTask (if they still work), but I'm trying to find out if there's a way to make an NPC drop their active weapon.
Try finding the weapon entity (it's parented to the NPC), then just remove it and create a new entity (the weapon) with ents.Create at the NPCs position Haven't tested this, but this should work.
npc:GetActiveWeapon():Remove() ended up simply working, thanks.
Sorry, you need to Log In to post a reply to this thread.