Beispiel #1
0
        private static void GiveKit(NPCPlayerApex npc, string kit, bool giveKit)
        {
            if (!giveKit)
            {
                return;
            }

            npc.inventory.Strip();

            Interface.Oxide.CallHook("GiveKit", npc, kit);

            Item item = npc.inventory.containerBelt.GetSlot(0);

            if (item == null)
            {
                return;
            }

            npc.UpdateActiveItem(item.uid);
        }