setCamShakeParams
- Local effect
- Arma 3 v0.50
- First in Arma 2: Operation Arrowhead v1.50
Command · Markdown · JSON · original wiki page
Description
Sets camera shake parameters. Will not have any effect until shake is started via addCamShake.
Syntax
setCamShakeParams [posCoef, vertCoef, horzCoef, bankCoef, interpolation]
Parameters:
posCoef: Number - strength of positional movement (how far the whole position can change in X,Y&Z). Should not be bigger than 0.1 to prevent the camera from moving into or behind the playervertCoef: Number - strength of vertical camera pan (up/down), practical range: 0..10horzCoef: Number - strength of horizontal camera pan (left/right), practical range: 0..10bankCoef: Number - strength of camera tilt/bank, practical range: 0..20interpolation: Boolean - if true, then transitions in the different shaking directions will be smoother
Returns: Nothing
Examples
Example 1
setCamShakeParams [0.1, 1, 1, 1, true];
See also
setCamShakeDefParams · addCamShake · enableCamShake · resetCamShake