Facebook Twitter YouTube Frictional Games | Forum | Newsletter | Dev Blog | Dev Wiki | Support | Shelf | Store

Privacy Policy


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script Help AddLocalVarInt and valves problems
Author Message
jens Offline
Frictional Games

Posts: 3,107
Joined: Apr 2006
Reputation: 103
Post: #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
Visit this user's website Find all posts by this user Quote this message in a reply
SilentStriker Offline
Posting Freak

Posts: 939
Joined: Jul 2011
Reputation: 39
Post: #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 all posts by this user Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)