Hello, there. I'm working on a plugin to spawn and manage locks/keys. I figured out how to spawn a key lock into a slot of an entity that has a lot slot, but how do I track the unique ID of that lock for later reference? or the item it is attached to? I may want to despawn that lock programmatically.
Do I just need to maintain a list of references to the BaseEntity of the parent item? How should I approach this?
Get Unique ID of Entity?
Discussion in 'Rust Development' started by TermNet, Feb 6, 2018.