It doesn't work because the you aren't changing the default camera when you change camera objects, so the conditions you have in the If/Then/Else branches always return False. I recommend you set a global integer variable array called CameraSelected, with the array size being the number of players. Then whenever a player presses O, increment that variable for the triggering player by 1. Then Switch actions based on whatever that integer is (for example, if it's 1 apply Camera 001, if it's 2 apply Camera 002, etc.) Under Default, set it to 1 and run the trigger again (this will allow it to cycle back to the first camera.)
Thanks for your answer! I got what you meant, and done almost everything, although I don't know how to increment the value of variable. I tried searching Math tab, but didn't find anything, so I tried adding Custom Script with "+1" but it didn't work either. What am I missing?
-
Ahh, it works now, but it stops after the three cameras have been showed. I want to loop it. How?
-
Nevermind, it works now :D I made the size of variable bigger by one, and checked it, after I added one point, if it was 4, then I changed it to 1 (which is camera 1).
Thank you for your help! :)
Hello!
I've been doing some triggers and all, and I can't find a solution to solve this! (for better quality: http://img717.imageshack.us/img717/5282/31857927.png)
What is wrong?
What I want - when you press a button (now it's O) it changes the camera (I have three cameras). Maybe there's another way of achieving it?
It doesn't work because the you aren't changing the default camera when you change camera objects, so the conditions you have in the If/Then/Else branches always return False. I recommend you set a global integer variable array called CameraSelected, with the array size being the number of players. Then whenever a player presses O, increment that variable for the triggering player by 1. Then Switch actions based on whatever that integer is (for example, if it's 1 apply Camera 001, if it's 2 apply Camera 002, etc.) Under Default, set it to 1 and run the trigger again (this will allow it to cycle back to the first camera.)
@BasharTeg: Go
Hey!
Thanks for your answer! I got what you meant, and done almost everything, although I don't know how to increment the value of variable. I tried searching Math tab, but didn't find anything, so I tried adding Custom Script with "+1" but it didn't work either. What am I missing?
-Ahh, it works now, but it stops after the three cameras have been showed. I want to loop it. How?
-Nevermind, it works now :D I made the size of variable bigger by one, and checked it, after I added one point, if it was 4, then I changed it to 1 (which is camera 1). Thank you for your help! :)
Variable Set - (is always selected when adding new action)
Variable Set MyInt = Math - Arithmetic (Integer) (MyInt+1)
So in short MyInt = MyInt + 1
OR
Modify Variable - in variables tab
Modify MyInt + 1