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
Boolean??!! Syntax help?
palistov Offline
Posting Freak

Posts: 1,208
Threads: 67
Joined: Mar 2011
Reputation: 57
#4
RE: Boolean??!! Syntax help?

Use some debug messages in your script. It will help you understand what is going on in your script and when. Using debug messages can help you pinpoint a lot of semantics errors. (script compiles but doesn't do what you intended)

For example, before you go into the if-else construct in your function CloseGate, add a debug message 'AddDebugMessage("Gate is at state: " + alState, false);' -- Do the same for a lot of your functions and see where the hiccup is.

Edit: misunderstood some of your script, editing out some of the misunderstandingsnessness Big Grin

(This post was last modified: 11-11-2012, 09:33 PM by palistov.)
11-11-2012, 09:32 PM
Find


Messages In This Thread
Boolean??!! Syntax help? - by Nuclearbones - 11-11-2012, 03:34 AM
RE: Boolean??!! - by Obsidiaguy - 11-11-2012, 04:34 AM
RE: Boolean??!! Syntax help? - by Nuclearbones - 11-11-2012, 04:43 AM
RE: Boolean??!! Syntax help? - by palistov - 11-11-2012, 09:32 PM



Users browsing this thread: 1 Guest(s)