I just lost my pants.

Posted by Hydra on April 7, 2009, 9:44 p.m.

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 GUN

global.gun0 = false

global.gun1 = false

global.gun2 = false

global.gun3 = false

global.gun4 = false

global.gun5 = false

global.gun6 = false

global.gun7 = false

global.gun8 = false

global.gun9 = false

Any ideas?

Comments

F1ak3r 15 years, 6 months ago

Imagine what you could have done with all the time you wasted typing up that unwieldy code.

ludamad 15 years, 6 months ago

"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;