Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Global Variables and Local Variables.
JoeBradleyUK Offline
Member

Posts: 115
Threads: 20
Joined: Jul 2011
Reputation: 0
#11
RE: Global Variables and Local Variables, God Damn! (sorry)

Ok, I broke it down in my head, so what you're doing is making it so i = 1 or you could say i is less than three (i <=3)

And in the callback everytime you pick up the relic it adds i which is the variable you set which equals 1.

Once you get all three it makes sure you have 3 or more to active it

Once you have enough it activates the trigger and whatever you want.

If I am understanding that correctly, there are 2 things still I don't get:

1) Where to script each of the things
2) what does the i++ mean at the if variable thing?

:Work In Progress:
Insanity
07-25-2011, 12:27 AM
Find


Messages In This Thread
RE: Variables, God Damn! (sorry) - by xtron - 07-23-2011, 08:59 PM
RE: Global Variables and Local Variables, God Damn! (sorry) - by JoeBradleyUK - 07-25-2011, 12:27 AM



Users browsing this thread: 1 Guest(s)