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
SilentStriker Offline
Posting Freak

Posts: 950
Threads: 26
Joined: Jul 2011
Reputation: 43
#12
RE: AddLocalVarInt and valves problems

(02-16-2012, 11:41 AM)jens Wrote: 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.
Thanks for the help Jens Smile I will try it when I get home Smile

Det funkade! Tack så hemskt mycket Jens! :]

It worked! Thank you so much Jens! Big Grin



(This post was last modified: 02-16-2012, 03:50 PM by SilentStriker.)
02-16-2012, 12:11 PM
Find




Users browsing this thread: 2 Guest(s)