
Posted:
Fri Apr 29, 2005 10:39 am
by rabidhamster
The script reference says:
settweak(scenenum,num,val) - sends a value to a scene tweak. This calls 'void settweak(int num,float val) {...}' in a user scene
so.. when you type 'settweak(find([name],[My Overlay]),[3],[42])' in the console, the function you have gets called, and num=3, and val=42. The function you've pasted in doesn't do very much - when you call settweak(...,[-1],[anything]) it sets amt_dir to -1, which fades out the scene.
You can also use gettweak to get values back from a scene/overlay. The xxx-o-matic scenes are good ones to look at, as most use settweak to set the colour of themselves up. hope that helps.
- Gordon

Posted:
Fri Apr 29, 2005 3:22 pm
by andff
high!
it is a little clear for me.. every frame settweak checks up values, defined in 'void settweak(int num,float val) {...}' - or do it when called by external 'settweak' function. is there avalable only two variables - num and val? what values have this vars by default?
tnank you!
ps: xxx-o-matic scene show nude girls? how interesting... i've never seeing this scene before..


Posted:
Sat May 07, 2005 11:03 am
by rabidhamster
settweak isn't called every frame, but every time you call settweak in the R4 scripting code. num and val are the only two values, but look at the announcements for an example of how to send more data (eg. text) via settweak - just use 'num' to specify what value to write, and 'val' to specify the value itself