ex_camera_zoom(cameraHandle, scale, duration)
| Argument | Description |
|---|---|
| cameraHandle | The camera handle |
| scale | The scale value, 100 is default |
| duration | The duration of the effect, in steps |
This function will perform a zoom in or out effect. Set the scale value to 100 in order to reset the zoom.
//Zoom in the camera view to 60% in 20 steps ex_camera_zoom(global._camera, 60, 20); //Zoom out the camera view to 120% in 20 steps ex_camera_zoom(global._camera, 120, 20);