Hey again guys.
I've got a small detail I'm trying to work out.
When my player has shot an enemy I add one to a global variable, when that global variable = 5 the players weapon changes. Currently set up as
Global Variable = 5 -> Set Global Variable 'gun' to (x)
And of course when global variable gun1 = shotgun, 2= rifle etc.
I can get it to work perfectly if I choose a single number/weapon, but I have a number of random weapons I want it to randomly choose.
I've tried :
Global Variable = 5 -> Set Global Variable 'gun' to floor(random(3))
But am having issues. Sometimes two guns spawns, sometimes it works, sometimes the gun disappears. I'm wondering if there's a simpler way to do this or maybe I am using the wrong expressions to select a global variable.