setCamShakeParams: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "<code>([^ ]*)\[\[([a-zA-Z][a-zA-Z0-9_]+)\]\]([^ ]*)<\/code>" to "<code>$1$2$3</code>") |
Lou Montana (talk | contribs) m (Text replacement - "\] +\[" to "] [") |
||
(4 intermediate revisions by the same user not shown) | |||
Line 16: | Line 16: | ||
|descr= Sets camera shake parameters. Will not have any effect until shake is started via [[addCamShake]]. | |descr= Sets camera shake parameters. Will not have any effect until shake is started via [[addCamShake]]. | ||
|s1= [[setCamShakeParams]] | |s1= [[setCamShakeParams]] [posCoef, vertCoef, horzCoef, bankCoef, interpolation] | ||
|p1= posCoef: [[Number]] - | |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 | ||
|p2= vertCoef: [[Number]] - | |p2= vertCoef: [[Number]] - strength of vertical camera pan (up/down), practical range: 0..10 | ||
|p3= horzCoef: [[Number]] - | |p3= horzCoef: [[Number]] - strength of horizontal camera pan (left/right), practical range: 0..10 | ||
|p4= bankCoef: [[Number]] - | |p4= bankCoef: [[Number]] - strength of camera tilt/bank, practical range: 0..20 | ||
|p5= interpolation: [[Boolean]] - | |p5= interpolation: [[Boolean]] - if [[true]], then transitions in the different shaking directions will be smoother | ||
|r1= [[Nothing]] | |r1= [[Nothing]] | ||
|x1= < | |x1= <sqf>setCamShakeParams [0.1, 1, 1, 1, true];</sqf> | ||
|seealso= [[setCamShakeDefParams]] [[addCamShake]] [[enableCamShake]] [[resetCamShake]] | |seealso= [[setCamShakeDefParams]] [[addCamShake]] [[enableCamShake]] [[resetCamShake]] | ||
}} | }} |
Latest revision as of 11:46, 5 May 2024
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:
Additional Information
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