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 with if-clauses
Tanshaydar Offline
From Beyond

Posts: 3,085
Threads: 17
Joined: Mar 2009
Reputation: 67
#2
RE: Scripting with if-clauses

if statement checks something if it's true or not. So you don't need to check twice if it's true or not with HasItem("lantern")==true

if(HasItem("lantern")) is enough. Again, you can try with deleting if line and see if the code actually works and nothing works with it, then try with if and pick up the lantern to see if it works.

07-18-2011, 03:01 AM
Website Find


Messages In This Thread
Scripting with if-clauses - by lemonpotatoe - 07-18-2011, 02:50 AM
RE: Scripting with if-clauses - by Tanshaydar - 07-18-2011, 03:01 AM
RE: Scripting with if-clauses - by lemonpotatoe - 07-18-2011, 03:29 AM
RE: Scripting with if-clauses - by ThePaSch - 07-18-2011, 06:41 AM
RE: Scripting with if-clauses - by Tanshaydar - 07-18-2011, 04:20 AM
RE: Scripting with if-clauses - by lemonpotatoe - 07-18-2011, 09:42 AM
RE: Scripting with if-clauses - by Tanshaydar - 07-18-2011, 09:49 AM
RE: Scripting with if-clauses - by lemonpotatoe - 07-18-2011, 09:58 AM
RE: Scripting with if-clauses - by Tanshaydar - 07-18-2011, 10:20 AM
RE: Scripting with if-clauses - by lemonpotatoe - 07-18-2011, 10:24 AM
RE: Scripting with if-clauses - by lemonpotatoe - 07-19-2011, 12:43 PM
RE: Scripting with if-clauses - by Kyle - 07-19-2011, 12:57 PM



Users browsing this thread: 1 Guest(s)