setCamShakeParams: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "<h3 style="display:none">Bottom Section</h3> " to "")
m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame( +[0-9])?|Game [Vv]ersion( +[0-9])?|Game Version \(number surrounded by NO SPACES\)|Arguments in MP|MP[Aa]rg|Multiplayer Arguments( \("local" or "global"\))?|Effects|Execution|Effects...)
Line 1: Line 1:
{{Command|Comments=
{{Command


| arma2oa |Game name=
| arma2oa


|1.51|Game version=
|1.51


|gr1= Camera Control |GROUP1=
|gr1= Camera Control


| 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]].


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


|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 |Parameter1=
|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


|p2= vertCoef: [[Number]] - Strength of vertical camera pan (up/down), practical range: 0-10 |Parameter2=
|p2= vertCoef: [[Number]] - Strength of vertical camera pan (up/down), practical range: 0-10


|p3= horzCoef: [[Number]] - Strength of horizontal camera pan (left/right), practical range: 0-10 |Parameter3=
|p3= horzCoef: [[Number]] - Strength of horizontal camera pan (left/right), practical range: 0-10
|p4= bankCoef: [[Number]] - Strength of camera tilt/bank, practical range: 0-20 |Parameter4=
|p4= bankCoef: [[Number]] - Strength of camera tilt/bank, practical range: 0-20
|p5= interpolation: [[Boolean]] - If [[true]], then transitions in the different shaking directions will be smoother |Parameter5=
|p5= interpolation: [[Boolean]] - If [[true]], then transitions in the different shaking directions will be smoother


| [[Nothing]] |RETURNVALUE=
| [[Nothing]]


|x1= <code>[[setCamShakeParams]] [0.1, 1, 1, 1, true]; </code> |EXAMPLE1=
|x1= <code>[[setCamShakeParams]] [0.1, 1, 1, 1, true]; </code>


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


}}
}}

Revision as of 12:10, 18 January 2021

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:
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 .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