setCamShakeParams: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (template:command argument fix)
Line 8: Line 8:


| Set camera shake parameters.  
| Set camera shake parameters.  
Will not have any effect until shake is started via [[addCamShake]]. |= Description
Will not have any effect until shake is started via [[addCamShake]]. |DESCRIPTION=
____________________________________________________________________________________________
____________________________________________________________________________________________


| '''setCamShakeParams'''  [posCoef, vertCoef, horzCoef, bankCoef, interpolation] |= Syntax
| '''setCamShakeParams'''  [posCoef, vertCoef, horzCoef, bankCoef, interpolation] |SYNTAX=


|p1= posCoef: [[Number]] - Strength of positional movement (how far the whole position can change in X,Y&Z), should not be bigger than .1, or the camera might move into, or behind, the player |=  
|p1= posCoef: [[Number]] - Strength of positional movement (how far the whole position can change in X,Y&Z), should not be bigger than .1, or the camera might move into, or behind, the player |=  
Line 19: Line 19:
|p5= interpolation: [[Boolean]] - If [[true]], then transitions in the different shaking directions will be smoother |=  
|p5= interpolation: [[Boolean]] - If [[true]], then transitions in the different shaking directions will be smoother |=  


| [[Nothing]] |= Return value
| [[Nothing]] |RETURNVALUE=
____________________________________________________________________________________________
____________________________________________________________________________________________


Line 25: Line 25:
____________________________________________________________________________________________
____________________________________________________________________________________________


| [[setCamShakeDefParams]], [[addCamShake]], [[enableCamShake]], [[resetCamShake]] |= See also
| [[setCamShakeDefParams]], [[addCamShake]], [[enableCamShake]], [[resetCamShake]] |SEEALSO=


}}
}}

Revision as of 15:46, 7 April 2019

Hover & click on the images for description

Description

Description:
Set camera shake parameters. Will not have any effect until shake is started via addCamShake.
Groups:
Uncategorised

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 .1, or the camera might move 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:
setCamShakeDefParamsaddCamShakeenableCamShakeresetCamShake

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

Notes

Bottom Section