LabAPI icon indicating copy to clipboard operation
LabAPI copied to clipboard

[IDEA] Add Serial overload to LabApi Item and Pickup wrappers

Open OMEGA3065 opened this issue 10 months ago • 1 comments

Goal Description

I need to spawn an item/pickup with a specific ushort serial and convert it then to a LabApi item/pickup for easier use. Right now I'm just copy-pasting code from the LabApi implementation for creating pickups which seems like it has a good chance of breaking in the future.

I would just appreciate an overload to the Player::AddItem, Pickup::Create methods which would allow the specification of a ushort serial.

Notes

No response

OMEGA3065 avatar Jan 11 '26 11:01 OMEGA3065

No. Serial numbers for items are their unique identifiers. You are not meant to edit them in any way. Doing so will result in game breaking bugs. Please write your code so the serial of a item that you need is stored after you created it, and then use that value for comparing.

davidsebesta1 avatar Jan 11 '26 11:01 davidsebesta1