Thanks to the discord I figured out to #include common_scripts\utility and use array_randomize(array)

Cocnutsballs
@Cocnutsballs
Posts
-
Randomize an array of names in gsc for gun game mp -
Randomize an array of names in gsc for gun game mpI am trying to randomize a array of all the gun names to have a random gun game order but gsc doesn't have a 'shuffle' function. Is there another way to do this? The array is below.
allgunslist = array("mp7_mp", "pdw57_mp", "vector_mp", "insas_mp", "qcw05_mp", "evoskorpion_mp", "peacekeeper_mp", "tar21_mp", "type95_mp", "sig556_mp", "sa58_mp", "hk416_mp", "scar_mp", "saritch_mp", "xm8_mp", "an94_mp", "870mcs_mp", "saiga12_mp", "ksg_mp", "srm1216_mp", "mk48_mp", "qbb95_mp", "lsat_mp", "hamr_mp", "svu_mp", "dsr50_mp", "ballista_mp", "as50_mp", "beretta93r_dw_mp", "fiveseven_mp", "fnp45_dw_mp", "judge_mp", "kard_mp", "smaw_mp", "usrpg_mp", "crossbow_mp", "knife_ballistic_mp", "minigun_wager_mp", "m32_wager_mp");```
-
Changing gun game guns in mpI am looking for a way to change the gun game rotation in mp custom games. I have modified the gun.gsc but I don't know where to put it within the files. Does knows what to do with it?