Giving a weapon with a skin?
Discussion in 'Rust Development' started by Sauron 2, Jun 7, 2016.
-
You have to create it using ItemManager.CreateByItemID I think, or something similar, and then you find the skin ID manually from the docs, or alternative ways.
I don't think there's currently a plugin that supports spawning skinned items natively, but I could be wrong. -
Last edited by a moderator: Jun 8, 2016
-
Yeah, being able to give any skin sort of defeats the purpose of skin rarity, but in my opinion if they are using a plugin to give skinned items then they probably aren't interested in skin rarity anyway. Rust isn't really at the point where people go "Oh wow you have that super rare skin, that's awesome!". The item drop rates don't really support a healthy skin economy outside of buying them just yet. I have 586 hours on Rust (a lot of them before Skins were a thing, though), and have only ever gotten paintings and crappy clothing skins (yellow long sleeve shirt..., twice).
-
-
ah, didn't realise we were keeping this secret
-
Wulf Community Admin
Posting full snippets and working plugins for the purpose of selecting or picking a skin at choice isn't. -
If you look in the kits config it includes a "Skin ID" value, try looking at the skin numbers I believe @Wulf posted,
-
Is there a way to get a list of all available skins for a given weapon id?
Like if I get the Item activeItem = player.GetActiveItem();
can I get a list of all skin ID's that this item supports? -
Wulf Community Admin
-
-
Item Skin Randomizer has a example of how to get a skin list
-
Off the top of my head I think it's ItemManager.FindItemDefinition(string shortname -or- Int itemid ).
-