Hai!, And Hello to all of you.
I just got gary's mod :) plus I'm working on an rawrsome game.That i need help in. You see I'm trying to make a weapon swaping system. Anyone think they could help?current variables.
Quote:
global.gun = 0 //MAIN GUNglobal.gun0 = falseglobal.gun1 = falseglobal.gun2 = falseglobal.gun3 = falseglobal.gun4 = falseglobal.gun5 = falseglobal.gun6 = falseglobal.gun7 = falseglobal.gun8 = falseglobal.gun9 = false
Imagine what you could have done with all the time you wasted typing up that unwieldy code.
"Two or more, use a for" is a programming saying that applies here.
global.maingun = 0;for (i = 0; i <= 9; i+=1)global.guns = false;