setCamShakeParams: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\|seealso= *\[\[([^ ]+)\]\], \[\[([^ ]+)\]\]" to "|seealso= $1 $2")
m (Text replacement - "\|seealso= *\[\[([^ ]+)\]\], \[\[([^ ]+)\]\]" to "|seealso= $1 ")
Line 32: Line 32:
|x1= <code>[[setCamShakeParams]] [0.1, 1, 1, 1, [[true]]];</code>
|x1= <code>[[setCamShakeParams]] [0.1, 1, 1, 1, [[true]]];</code>


|seealso= [[setCamShakeDefParams]] [[addCamShake]], [[enableCamShake]], [[resetCamShake]]
|seealso= [[setCamShakeDefParams]] [[addCamShake]] [[enableCamShake]], [[resetCamShake]]
}}
}}

Revision as of 17:46, 20 January 2022

Hover & click on the images for description

Description

Description:
Sets camera shake parameters. Will not have any effect until shake is started via addCamShake.
Groups:
Camera Control

Syntax

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 player
vertCoef: Number - Strength of vertical camera pan (up/down), practical range: 0-10
horzCoef: Number - Strength of horizontal camera pan (left/right), practical range: 0-10
bankCoef: Number - Strength of camera tilt/bank, practical range: 0-20
interpolation: Boolean - If true, then transitions in the different shaking directions will be smoother
Return Value:
Nothing

Examples

Example 1:
setCamShakeParams [0.1, 1, 1, 1, true];

Additional Information

See also:
setCamShakeDefParams addCamShake enableCamShakeresetCamShake

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note