I've got a trigger that applies a different camera object for each player and then locks the camera input. For some reason I get
Parameter out of bounds in 'CameraApplyInfo' (value: -1, min 0, max 15)
Parameter out of bounds in 'CameraLockInput' (value: -1, min 0, max 15)
errors whenever I try to test the trigger. The code is
General - For each integer a from 0 to 1 with increment 1, do (Actions)
General - For each integer b from 0 to 5 with increment 1, do (Actions)
Camera - Apply Selection Cameras[a][b] for player (Player (b + 1) from Set Team[a]) over 0.0 seconds with Existing Velocity% initial velocity, 10% deceleration, and Include Target
Camera - Lock camera input for player (Player (b + 1) from Set Team[a])
Selection Cameras is the 2-dimensional array I'm storing the cameras in, with a size of [1][5]. Set Team is a player group array that stores the players on each team with a size of [1].
(Player (b + 1) from Set Team[a]) im not exactly sure which function ur calling, but Set Team[a] may be emptie for messed up, i would look closely at that.
if u cant figure it out tell me what function(s) ur using here. and what Team[a] is in more detail
So actually I just solved this problem when I thought about it. The error was that I was trying to access players from the set team player group variable accept it didn't have that many players in it so it returned -1 which caused an error. Thanks for your response.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I've got a trigger that applies a different camera object for each player and then locks the camera input. For some reason I get
Parameter out of bounds in 'CameraApplyInfo' (value: -1, min 0, max 15)
Parameter out of bounds in 'CameraLockInput' (value: -1, min 0, max 15)
errors whenever I try to test the trigger. The code is General - For each integer a from 0 to 1 with increment 1, do (Actions)
General - For each integer b from 0 to 5 with increment 1, do (Actions)
Camera - Apply Selection Cameras[a][b] for player (Player (b + 1) from Set Team[a]) over 0.0 seconds with Existing Velocity% initial velocity, 10% deceleration, and Include Target
Camera - Lock camera input for player (Player (b + 1) from Set Team[a])
Selection Cameras is the 2-dimensional array I'm storing the cameras in, with a size of [1][5]. Set Team is a player group array that stores the players on each team with a size of [1].
The errors repeat themselves 12 times.
Lots of thanks in advanced.
(Player (b + 1) from Set Team[a]) im not exactly sure which function ur calling, but Set Team[a] may be emptie for messed up, i would look closely at that.
if u cant figure it out tell me what function(s) ur using here. and what Team[a] is in more detail
So actually I just solved this problem when I thought about it. The error was that I was trying to access players from the set team player group variable accept it didn't have that many players in it so it returned -1 which caused an error. Thanks for your response.