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
Script Help AddLocalVarInt and valves problems
jens Offline
Frictional Games

Posts: 4,093
Threads: 199
Joined: Apr 2006
Reputation: 202
#11
RE: AddLocalVarInt and valves problems

If you move AddLocalVarInt("Valve", 1); to be located outside the for loop but inside the alState == 1 section it should work fine.

It's always good to use the AddDebugMessage extensively when scripting, it will save you a lot of time, if you had done
a AddDebugMessage("Valve value: "+GetLocalVarInt("Valve), false); you would instantly see that the value is not what you think it should be, or if it has no value you would know it did not get triggered.
02-16-2012, 11:41 AM
Website Find


Messages In This Thread
RE: AddLocalVarInt and valves problems - by jens - 02-16-2012, 09:28 AM
RE: AddLocalVarInt and valves problems - by jens - 02-16-2012, 11:41 AM



Users browsing this thread: 1 Guest(s)