Adding a bag to starting gear?
In the init.c I wish to add bag TaloonBag_Orange and all the random colors blue, green, violet, and orange.
But looking at the Chemlight code line: (chemlightArray[rndIndex])
Would my code for adding "TaloonBags" look like this and, what is the significance of the "taloonbagArray"?
In the init.c I wish to add bag TaloonBag_Orange and all the random colors blue, green, violet, and orange.
But looking at the Chemlight code line: (chemlightArray[rndIndex])
Code:
string chemlightArray[] = { "Chemlight_White", "Chemlight_Yellow", "Chemlight_Green", "Chemlight_Red" };
int rndIndex = Math.RandomInt(0, 4);
itemEnt = itemTop.GetInventory().CreateInInventory(chemlightArray[rndIndex]);
SetRandomHealth(itemEnt);
Would my code for adding "TaloonBags" look like this and, what is the significance of the "taloonbagArray"?
Code:
string taloonbagArray[] = { "TaloonBag_Blue", "TaloonBag_Green", "TaloonBag_Violet", "TaloonBag_Orange" };
int rndIndex = Math.RandomInt(0, 4);
itemEnt = itemTop.GetInventory().CreateInInventory(taloonbagArray[rndIndex]);
SetRandomHealth(itemEnt);
Last edited: