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
Scripting Problems
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#2
RE: Scripting Problems

The "following messages" don't show because you placed the conditional statements that check for how much time is left inside the callback of the lever. This means the time left is checked only when the lever is pulled, not every other time. But i doubt you'd receive whole numbers as a result if you had coded it properly. If you wish to compare against whole numbers, convert the float into an int. The way i'd do it is to call another function when pulled, which increments every second, using that value for the SetMessage function, and when it reaches 30 to stop calling the timer.

As for your for loop, you have "int i;", this is the same as doing int "i = 0;". So, you're just going to get one loop, therefore no point in making a loop.

Tutorials: From Noob to Pro
10-20-2013, 10:34 PM
Website Find


Messages In This Thread
Scripting Problems - by saito100 - 10-20-2013, 09:32 PM
RE: Scripting Problems - by Your Computer - 10-20-2013, 10:34 PM



Users browsing this thread: 1 Guest(s)