Background for Fallout 4
Member of the Game script
voidfunctionShakeCamera(ObjectReferenceakSource=NONE, floatafStrength=0.5, floatafDuration=0.0)NativeGlobal

[DEV SERVER] Loading description...


Caveats


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


Additional References

View this function’s page on the Fallout 4 Creation Kit Wiki

Some data provided by the Fallout 4 Creation Kit Wiki. Licensed under the Creative Commons Attribution-Share Alike 4.0 license.