gxd4b0
10-21-2002, 01:56 PM
Heres the scene.
In my initial timeline i have set some variables. I have 3 objects who go through some random numbers. Depending on which of these objects come up with the highest number, I want the timeline to jump to a certain frame.
The problem is my timeline consists of 1 keyframe which has the following:
highestnumber = 0;
if(highestnumber==1){
//jump to frame 2 which displays Object 2 has highest number
}
if(highestnumber==2){
//jump to frame 3 which displays Object 3 has highest number
}
etc.....
obviously if I set the variable highestnumber to 0, then it cant be 1 or 2.
So my question is how can I set a variable at the start, then depending on which object has the highest number, run a particular frame.
I hope that all makes sense. If it doesnt let me know and I'll try to explain better.
In my initial timeline i have set some variables. I have 3 objects who go through some random numbers. Depending on which of these objects come up with the highest number, I want the timeline to jump to a certain frame.
The problem is my timeline consists of 1 keyframe which has the following:
highestnumber = 0;
if(highestnumber==1){
//jump to frame 2 which displays Object 2 has highest number
}
if(highestnumber==2){
//jump to frame 3 which displays Object 3 has highest number
}
etc.....
obviously if I set the variable highestnumber to 0, then it cant be 1 or 2.
So my question is how can I set a variable at the start, then depending on which object has the highest number, run a particular frame.
I hope that all makes sense. If it doesnt let me know and I'll try to explain better.