Hi,
I created a weapon and add attachments to it like this.
player.GiveItem(gun, BaseEntity.GiveItemReason.PickedUp);
gun.MoveToContainer(player.inventory.containerBelt, 0);
var holo = ItemManager.CreateByName("weapon.mod.holosight", 1);
var light = ItemManager.CreateByName("weapon.mod.flashlight", 1);
holo.MoveToContainer(gun.contents);
light.MoveToContainer(gun.contents);I was wondering if anybody knew a way to make it so that a player cant take the attachments off.