PlayCameraShake: Difference between revisions
From Onset Developer Wiki
No edit summary |
No edit summary |
||
Line 11: | Line 11: | ||
{{FuncParamOptional|Scale|The shake scale in floating point.}} | {{FuncParamOptional|Scale|The shake scale in floating point.}} | ||
{{FuncReturnValue| | {{FuncReturnValue|This function returns nothing.}} | ||
== Example == | == Example == |
Revision as of 13:27, 20 November 2019
Description
Make the player's camera shake using StopCameraShake.
Syntax
PlayCameraShake(Duration [, BlendInTime, BlendOutTime, Scale])
Parameters
- Duration
The duration in milliseconds. - BlendInTime
The blend-in time. - BlendOutTime
The blen-out time. - Scale (optional)
The shake scale in floating point.
Return Value
- This function returns nothing.
Example
SetCameraShakeRotation(0.0, 0.0, 1.0, 10.0, 0.0, 0.0)
SetCameraShakeFOV(5.0, 5.0)
PlayCameraShake(100000.0, 2.0, 1.0, 1.1)