| 02-19-2007, 03:09 PM | #1 |
Alright...well, eveyone knows that the default camera hight really isn't all that great for any custom game. I have the trigger to set the camera distance to say, 2200 or whatever the distance i want it to be..but if you do any camera adjustments in game (accidentally scroll a mouse-wheel, press delete or page down or whatever those keys are for rotating the camera) the camera will drop back down to its default height. Is there anyway to lock the camera distance, or to write a trigger that will automatically reset the camera angle if it is moved? |
| 02-19-2007, 09:28 PM | #2 |
You will need to set it every so often so that the player won't notice the movement. Use something like: JASS:function cam_control takes nothing returns nothing call SetCameraField(CAMERA_FIELD_TARGET_DISTANCE,2200.0,0.0) endfunction function init_cam takes nothing returns nothing call TimerStart(CreateTimer(),0.033,true,function cam_control) endfunction |
| 02-19-2007, 09:32 PM | #3 |
pan camera over 0.01 seconds in a periodic trigger. |
| 02-20-2007, 04:46 PM | #4 |
K, thanks for that help |
