addCamShake: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\|gr([0-9]+) = " to "|gr$1= ")
m (formatting)
Line 1: Line 1:
{{RV|type=command
{{RV|type=command


| arma2oa
|game1= arma2oa


|1.51
|version1= 1.51
 
|game2= tkoh
 
|version2= 1.00
 
|game3= arma3
 
|version3= 0.50


|gr1= Camera Control
|gr1= Camera Control
Line 9: Line 17:
|eff= local
|eff= local


| Creates the camera shaking effect, like when you are near an explosion
|descr= Creates the camera shaking effect, like when you are near an explosion
 
|s1= '''addCamShake''' [power, duration, frequency]
 
|p1= power: [[Number]] - Strength of shake (camera movement), practical range is 0 to 20


| '''addCamShake''' [power, duration, frequency]
|p2= duration: [[Number]] - Duration in seconds


|p1= power: [[Number]] - Strength of shake, practical range is 0 to 20 (how strong the camera movement will be).
|p3= frequency: [[Number]] - Frequency of shake, practical range is 0 to 100
|p2= duration: [[Number]] - Duration in seconds (how long the effect will last)
|p3= frequency: [[Number]] - Frequency of shake, practical range is 0 to 100 (how will be the rhythm).


| [[Nothing]]
|r1= [[Nothing]]
   
   
|x1= <code>[[addCamShake]] [10, 1, 25];</code>
|x1= <code>[[addCamShake]] [10, 1, 25];</code>
Line 26: Line 36:
|seealso= [[enableCamShake]], [[setCamShakeDefParams]], [[setCamShakeParams]], [[resetCamShake]]
|seealso= [[enableCamShake]], [[setCamShakeDefParams]], [[setCamShakeParams]], [[resetCamShake]]
}}
}}
[[Category:Arma 2: Operation Arrowhead: New Scripting Commands|{{uc:{{PAGENAME}}}}]]
{{GameCategory|arma2|Scripting Commands}}
{{GameCategory|arma3|Scripting Commands}}
{{GameCategory|tkoh|Scripting Commands}}
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]

Revision as of 18:42, 13 April 2021

Hover & click on the images for description

Description

Description:
Creates the camera shaking effect, like when you are near an explosion
Groups:
Camera Control

Syntax

Syntax:
addCamShake [power, duration, frequency]
Parameters:
power: Number - Strength of shake (camera movement), practical range is 0 to 20
duration: Number - Duration in seconds
frequency: Number - Frequency of shake, practical range is 0 to 100
Return Value:
Nothing

Examples

Example 1:
addCamShake [10, 1, 25];
Example 2:
enableCamShake true; addCamShake [5, 5, 25];

Additional Information

See also:
enableCamShakesetCamShakeDefParamssetCamShakeParamsresetCamShake

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