Just a quick question is it possable to take a random item from a PC?
question about random items
Débuté par
Surek
, juil. 25 2015 12:58
#1
Posté 25 juillet 2015 - 12:58
#2
Posté 25 juillet 2015 - 01:18
Just a quick question is it possable to take a random item from a PC?
loop all items in inventory, increase integer variable counter by 1 for each found item
then get random inte from count and start loop over this time decrease the counter by 1 for each item found till the counter will be 0 in which case you break the loop and oItem will be random item.
Just be cautious for undroppable items with this...





Retour en haut






