setCamShakeParams: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
Line 7: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


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


| '''setCamShakeParams''' [posCoef, rotXCoef, rotYCoef, rotZCoef, interp] |= Syntax
| '''setCamShakeParams''' [posCoef, vertCoef, horzCoef, bankCoef, interpolation] |= Syntax


|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 .1, or the camera might move into, or behind, the player |=  
|p2= rotXCoef: [[Number]] |=  
|p2= vertCoef: [[Number]] - Strength of vertical camera pan (up/down), practical range: 0-10 |=  
|p3= rotYCoef: [[Number]] |=  
|p3= horzCoef: [[Number]] - Strength of horizontal camera pan (left/right), practical range: 0-10 |=  
|p4= rotZCoef: [[Number]] |=  
|p4= bankCoef: [[Number]] - Strength of camera tilt/bank, practical range: 0-20 |=  
|p5= interp: [[Number]] |=  
|p5= interpolation: [[Boolean]] - If true, then transitions in the different shaking directions will be smoother |=  


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


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


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


}}
}}
Line 34: Line 35:
<!-- Note Section END -->
<!-- Note Section END -->
</dl>
</dl>
*setCamShakeParams [1,1,1,1,true];
<h3 style="display:none">Bottom Section</h3>
<h3 style="display:none">Bottom Section</h3>



Revision as of 01:06, 23 August 2013

Hover & click on the images for description

Description

Description:
Set camera shake parameters. Will not have any effect unit 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