You can also to use the RR command PLAYSOUND
"ONSLDGPXSLIDER1","PLAYSOUND;$SKINPATH$SCRIPTS\RAD AR\Alarm.wav"
Printable View
because, i didnt code it that way...
IFVAR came to me in a dream by the way
not to mention, it can work with strings
IFVAR;myvar=hello;dotrue;dofalse
its ment for simple....
use EVAL for today
naw... u dont have to be quiet, if u need help... ask
as mitch says no need to be quit , there's always alot of teasing around here , usually between us UK guy's and the US guys, but its just that friendly teaseing,,,,
sometimes us old user forget what its like to be a newbie so to speak , and there are alot of users that don't understand RR but use it , good for you for getting stuck in mate , ask away
we are all here to help
:lol:
Thanks guys!
I Know that when you say I can ask you donīt mean right now, but...
Here is a problem where I am stucked:
this event works pretty well and play sound when slider act:
I try to replace for this one to play different sounds for 3 ranges:Code:"ONSLDGPXSLIDER1","EVAL;SLDSTATUS;<($GPXSLIDER1$;$PREVSLD$)||SETVAR;PREVSLD;$GPXSLIDER1$||IFVAR;SLDSTATUS=1;PlayWav;$SKINPATH$Scripts\RADAR\slider.wav"
All playwavīs are tested and also the EVALīs, I think that is related to the expression after the first IFVAR, I also tryed IFVAR;SLDSTATUS=1;(mycode) but I guess I canīt use ()...Code:"ONSLDGPXSLIDER1","EVAL;SLDSTATUS;<($GPXSLIDER1$;$PREVSLD$)||SETVAR;PREVSLD;$GPXSLIDER1$||IFVAR;SLDSTATUS=1;EVAL;RANGE_FAR;>($GPXSLIDER1$;40000)||EVAL;RANGE_MID;>($GPXSLIDER1$;15000)||
EVAL;RANGE_MID;>($RANGE_MID$;$RANGE_FAR$)||EVAL;RANGE_CLO;<($GPXSLIDER1$;15000)||IFVAR;RANGE_CLO=1;PlayWav;$SKINPATH$Scripts\RADAR\CLOSE.wav||IFVAR;RANGE_MID=1;PlayWav;$SKINPATH$Scripts
\RADAR\MID.wav||IFVAR;RANGE_FAR=1;PlayWav;$SKINPATH$Scripts\RADAR\FAR.wav"
Can you help me?
Nevermind again,
I just use some IFVARīs inside another IFVARīs and itīs working now:
the full result:
thanks again!Code:
"ONSLDGPXSLIDER1","EVAL;SLDSTATUS;<($GPXSLIDER1$;$PREVSLD$)||EVAL;RANGE_FAR;>($GPXSLIDER1$;40000)||EVAL;RANGE_MID;>($GPXSLIDER1$;15000)||EVAL;RANGE_MID;>($RANGE_MID$;$RANGE_FAR$)||EVAL;RANGE_CLO;<($GPXSLIDER1$;15000)||IFVAR;SLDSTATUS=1;IFVAR;RANGE_CLO=1;PlayWav;$SKINPATH$Scripts\RADAR\CLOSE.wav||IFVAR;SLDSTATUS=1;IFVAR;RANGE_MID=1;PlayWav;$SKINPATH$Scripts\RADAR\MID.wav||IFVAR;SLDSTATUS=1;IFVAR;RANGE_FAR=1;PlayWav;$SKINPATH$Scripts\RADAR\FAR.wav||SETVAR;PREVSLD;$GPXSLIDER1$"