Shaking Camera Script

by Drak

This scripts allows you to make a shaking camera, which is great for showing explosions in a more intense way.

The script

shakecam.sqs: This is the script that shakes the camera. It can only shake a camera you have a pointer to (usually, that means you created the camera with camCreate). You can set the shakiness of the camera at the scripts call.

How to setup?

Create your camera, then trigger this script in any way you like, using triggers or waypoints etc. Put the following line in the On Activation box:

[cameraname, shakiness] exec "shakecam.sqs"

cameraname is the camera you want to shake, shakiness is the maximum distance the camera travels in one shake (0.1 - 0.6 should work well).

To stop the shaking simply make set the variable endshake to 1. Please do this before you destroy the camera!

download the example mission. Extract the zip to your user/missions directory of Operation Flashpoint.