addCamShake: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) 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 | |||
| | |p2= duration: [[Number]] - Duration in seconds | ||
|p3= frequency: [[Number]] - Frequency of shake, practical range is 0 to 100 | |||
|p3= frequency: [[Number]] - Frequency of shake, practical range is 0 to 100 | |||
| [[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]] | ||
}} | }} | ||
Revision as of 17:42, 13 April 2021
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
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