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 - "\] +\[" to "] [")
 
(19 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Command|Comments=
{{RV|type=command


| arma2oa |Game name=
|game1= arma2oa
|version1= 1.50


|1.51|Game version=
|game2= tkoh
|version2= 1.00


|gr1= Camera Control |GROUP1=
|game3= arma3
|version3= 0.50


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


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


|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=
|descr= Sets camera shake parameters. Will not have any effect until shake is started via [[addCamShake]].


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


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


| [[Nothing]] |RETURNVALUE=
|p2= vertCoef: [[Number]] - strength of vertical camera pan (up/down), practical range: 0..10


|x1= <code>[[setCamShakeParams]] [0.1, 1, 1, 1, true]; </code> |EXAMPLE1=
|p3= horzCoef: [[Number]] - strength of horizontal camera pan (left/right), practical range: 0..10


| [[setCamShakeDefParams]], [[addCamShake]], [[enableCamShake]], [[resetCamShake]] |SEEALSO=
|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
|r1= [[Nothing]]
|x1= <sqf>setCamShakeParams [0.1, 1, 1, 1, true];</sqf>
|seealso= [[setCamShakeDefParams]] [[addCamShake]] [[enableCamShake]] [[resetCamShake]]
}}
}}
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
{{GameCategory|arma2|Scripting Commands}}
{{GameCategory|arma3|Scripting Commands}}
{{GameCategory|tkoh|Scripting Commands}}
[[Category:Arma 2: Operation Arrowhead: New Scripting Commands List|{{uc:{{PAGENAME}}}}]]

Latest revision as of 11:46, 5 May 2024

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 enableCamShake resetCamShake

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