Моя цель - сделать так что бы камера плавно поднималась если игрок смотрит в какой нибудь обрыв. Ну и естественно плавно возврашалась если игрок двигает камеру за пределы обрыва. Вот как я это сделал.
Code
Events
Game - Cam becomes Less than 500.00
Conditions
Actions
For each (Integer A) from 1 to 10, do (Actions)
Loop - Actions
Set DTT[(Integer A)] = (1800.00 + (2.00 x (500.00 - (Target Z of current camera view))))
Camera - Set (Player((Integer A)))'s camera Distance to target to DTT[(Integer A)] over 0.60 seconds
Code
Events
Game - Cam becomes Greater than or equal to 501.00
Conditions
Actions
For each (Integer A) from 1 to 10, do (Actions)
Loop - Actions
Set DTT[(Integer A)] = 1800.00
Camera - Set (Player((Integer A)))'s camera Distance to target to DTT[(Integer A)] over 0.60 seconds
Code
Events
Time - Every 0.05 seconds of game time
Conditions
Actions
Camera - Set Player 1 (Red)'s camera Distance to target to DTT[1] over 0.60 seconds
Camera - Set Player 2 (Blue)'s camera Distance to target to DTT[2] over 0.60 seconds
Camera - Set Player 3 (Teal)'s camera Distance to target to DTT[3] over 0.60 seconds
Camera - Set Player 4 (Purple)'s camera Distance to target to DTT[4] over 0.60 seconds
Camera - Set Player 5 (Yellow)'s camera Distance to target to DTT[5] over 0.60 seconds
Camera - Set Player 6 (Orange)'s camera Distance to target to DTT[6] over 0.60 seconds
Camera - Set Player 7 (Green)'s camera Distance to target to DTT[7] over 0.60 seconds
Camera - Set Player 8 (Pink)'s camera Distance to target to DTT[8] over 0.60 seconds
Camera - Set Player 9 (Gray)'s camera Distance to target to DTT[9] over 0.60 seconds
Camera - Set Player 10 (Light Blue)'s camera Distance to target to DTT[10] over 0.60 seconds
Set Cam = (Target Z of current camera view)
Оно работает для всех игроков (для каждого), но мне нужно знать если оно будет работать для всех игроков если они присутствуют в карте. Просто в данный момент я не могу это проверить, а мне нужно знать это срочно.