im trying to get the levels of a custom keycard for 914, but all i have is the Pickup and i dont know how to get from Pickup to KeycardItem
i did this mess:
Log.Warn(1);
Pickup result = Pickup.Create(ItemType.KeycardCustomManagement, pickup.Position + Scp914Controller.MoveVector, pickup.Rotation, pickup.Transform.localScale);
Log.Warn(2);
LabApi.Features.Wrappers.KeycardItem newresult = (LabApi.Features.Wrappers.KeycardItem) LabApi.Features.Wrappers.KeycardItem.Get(LabApi.Features.Wrappers.Item.Get(pickup.Serial).Base);
Log.Warn("Card levels: " + newresult.Levels.Containment.ToString() + newresult.Levels.Armory.ToString() + ", " + newresult.Levels.Admin.ToString());
the console gets flooded with 1s and 2s but never gets to the "Card levels: ..." part and 914 never opens
i dont know why it gets flooded but pretend it errors on the line where "newresult" is assigned




