voidfunctionShakeCamera(ObjectReferenceakSource=NONE, floatafStrength=0.5, floatafDuration=0.0)NativeGlobal
Description
Wiki Description
Shakes the camera from the specified object's location, with the specified strength. The optional duration can be used to define how long to shake the camera. If no duration is provided then the fCameraShakeTime game setting will be used for duration.
Documentation Comment
Shakes the object from the location of the passed-in object. If none, it will shake the camera from the player's location.
Strength is clamped from 0 to 1
Duration in seconds. By default (0.0) use the game setting.
Parameters
ObjectReferenceakSource=NONE
CK Wiki Description
Where to shake the camera from. If None, will shake the camera from the player's location
- Default:None
floatafStrength=0.5
CK Wiki Description
How hard to shake the camera. The value will be clamped from 0 to 1.
- Default:0.5
floatafDuration=0.0
CK Wiki Description
How long in seconds to shake the camera.
- Default:0.0 (Use the game setting)
Examples
; Shake the camera from the player's location at half strength
Game.ShakeCamera(); Gently shake the camera from the player's location
Game.ShakeCamera(afStrength = 0.1)Auto-Generated Example
ObjectReference myObjectReference__akSource
float myFloat__afStrength
float myFloat__afDuration
Game.ShakeCamera(myObjectReference__akSource, myFloat__afStrength, myFloat__afDuration)Related Pages
- Game
- Game.ShakeController(...)
Additional References
View this function’s page on the Fallout 4 Creation Kit Wiki
