setCamShakeParams: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Take[ _]On[ _]Helicopters(\|.*)?\]\]" to "{{GameCategory|tkoh|Scripting Commands}}") |
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
||
Line 1: | Line 1: | ||
{{Command|Comments= | {{Command|Comments= | ||
| arma2oa |Game name= | | arma2oa |Game name= | ||
Line 7: | Line 6: | ||
|gr1= Camera Control |GROUP1= | |gr1= Camera Control |GROUP1= | ||
| 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= | ||
Line 24: | Line 21: | ||
| [[Nothing]] |RETURNVALUE= | | [[Nothing]] |RETURNVALUE= | ||
|x1= <code>[[setCamShakeParams]] [0.1, 1, 1, 1, true]; </code> |EXAMPLE1= | |x1= <code>[[setCamShakeParams]] [0.1, 1, 1, 1, true]; </code> |EXAMPLE1= | ||
| [[setCamShakeDefParams]], [[addCamShake]], [[enableCamShake]], [[resetCamShake]] |SEEALSO= | | [[setCamShakeDefParams]], [[addCamShake]], [[enableCamShake]], [[resetCamShake]] |SEEALSO= |
Revision as of 02:58, 17 January 2021
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
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
Categories:
- Scripting Commands
- Introduced with Arma 2: Operation Arrowhead version 1.51
- Arma 2: Operation Arrowhead: New Scripting Commands
- Arma 2: Operation Arrowhead: Scripting Commands
- Command Group: Camera Control
- Arma 2: Scripting Commands
- Arma 3: Scripting Commands
- Take On Helicopters: Scripting Commands
- Arma 2: Operation Arrowhead: New Scripting Commands List