|
HI, I have a GUI script which has a line
Then i have another script with a
line. How do I use if/else statements to make the button call out the function Target.SelectWeapon(1); if my MyScoreCounter is more than a certain value, else do nothing?
(comments are locked)
|
|
Use either:
or:
depending on how you want to lay it out thanks for the answer, what can i do to make the points deduct when it has MyScoreCounter > 20? I'm trying to make something like a shop system.
Dec 22 '10 at 01:32 AM
user-3061 (yahoo)
I mean when MyScoreCounter > 20, change to the weapon and deduct 20 points from the var?
Dec 22 '10 at 01:33 AM
user-3061 (yahoo)
just add MyScoreCounter -= 20; below Target.SelectWeapon(1);
Dec 22 '10 at 01:59 AM
Mike 3
thanks for the help!
Dec 22 '10 at 03:42 AM
user-3061 (yahoo)
(comments are locked)
|
