PDA

View Full Version : How do you put sound files in an 'if' statement?


facelaunch
04-26-2006, 11:37 AM
I have six sound files that I only want one to be played if certain statements are true.

How do I go about importing them and only calling them one at a time in the MEL script ?

I'm a bit lost because I think they must all be in the time line but all of them may not need to be executed according to the IF-statement.

For instance,

If distance.x >10 then
play sound file1
else play sound file2

if distance.y >10 then
play sound file3
else play sound file4

If distance.z >10 then
play sound file5
else play sound file6

CGTalk Moderation
04-26-2006, 11:37 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.