Need help with syntax
Posted: Fri Feb 19, 2010 4:05 pm
fancone is a script object in radiant with data. I am trying to access the data from a thread but keep getting nil. Here is the script object ...
Isn't it peculiar the way the zeros do not line up for the fanspeed and clocktick?

So in my main prior to level waittill spawn I have this -> $fancone thread modified_monitor_fan_speed
Then in modified_monitor_fan_speed thread I have -> iprintln self.TerminalVelocity
nil is what is printed out, so the self obj is not being created or my syntax is bad. If the self object is not being created than the way I created the thread with the script object is improper.
Does anyone know what I am doing wrong?
Isn't it peculiar the way the zeros do not line up for the fanspeed and clocktick?

So in my main prior to level waittill spawn I have this -> $fancone thread modified_monitor_fan_speed
Then in modified_monitor_fan_speed thread I have -> iprintln self.TerminalVelocity
nil is what is printed out, so the self obj is not being created or my syntax is bad. If the self object is not being created than the way I created the thread with the script object is improper.
Does anyone know what I am doing wrong?