Is it possible to set some additional data (attribute) on the object (loot or storage container e.g.)?
For example a custom name (description) for certain wooden box?
Currently I store the data in in external dictionary linked with entityID.
Custom data on objects?
Discussion in 'Rust Development' started by Fruhling, Apr 24, 2018.
-
Look into extension methods, you could have simply Googled this.
-
Do you mean standard C# extension methods?
Well, I can call some void and do something with the object but not to store some additional data in it. -
Wulf Community Admin
If I'm understanding what you are wanting to do, I don't think it'd really be possible. You'd likely need to store what you want in something else that is associated with the ID or whatever of that specific object/entity.
In terms of extension methods on Rust classes/types (or any), that would generally be considered pollution as it could cause conflicts and such if multiple plugins try to handle the same thing. I'm not sure that this is what you're looking to do though either way. -