Is it possible to change name of a single item?
And second question, can i change name of spawner box? (this answer i know, NO, but maybe i am wrong? xD)
[DOUBLEPOST=1519221543][/DOUBLEPOST]Found interesting way that can help, but i am not sure:
On initialization of plugin, we find item from itemList:
var x = ItemManager.itemList.Where(p=>p.shortname == "rifle.ak").First();
then let's change Item fields
x.shorname = "new.rifle.ak";
x.itemid = x.itemid - 1;
x.capacity
then add to list and dictionary.
ItemManager.itemList.Add(x);
ItemManager.itemDictionary.Add(x.itemid, x);
Now we can create same ak47 with ItemManager.CreateByPartialName("new.rifle.ak");
We can set different ammo capacity, but...... Same problem with name
[DOUBLEPOST=1519222654][/DOUBLEPOST]Good plus for GrenadeLauncher plugin, so we can create new PumpShotgun, and set - hi is shoting with rockets (maybe grenade), and it will normally work with reload, e.t.c.
[DOUBLEPOST=1519469066,1519219026][/DOUBLEPOST]UP.
Changing item name?
Discussion in 'Rust Development' started by HOUGAN_Y, Feb 24, 2018.
-
Last I knew, item names and things like that were all client side, so changing them with a plugin never worked.
-
How is this possible?
changing the name of items?
[DOUBLEPOST=1519948234][/DOUBLEPOST]Sorry to duplicate @Wulf any idea how this is done? thanksAttached Files:
-
-