voidfunctionShakeController(floatafSmallMotorStrength, floatafBigMotorStreangth, floatafDuration)NativeGlobal
Description
Wiki Description
Shakes the controller with the specified strength, for the specified length of time.
Documentation Comment
Shakes the controller for the specified length of time (in seconds). The strength values are clamped from 0 to 1
Caveats
CK Wiki - Notes
The locations of the small and large haptic motors on a controller vary by model. Previous versions of this documentation used the alternative parameter names afLeftStrength and afRightStrength, possibly implying that the game hardcoded the left and right motors. Testing may be in order.
Parameters
floatafSmallMotorStrength
CK Wiki Description
The strength of the motor with the smaller weight. Clamped from 0 to 1.
floatafBigMotorStreangth
CK Wiki Description
The strength of the motor with the larger weight. Clamped from 0 to 1.
floatafDuration
CK Wiki Description
How long to shake the controller - in seconds.
Examples
; Shake the controller for 2 seconds
Game.ShakeController(0.5, 0.5, 2.0)Auto-Generated Example
float myFloat__afSmallMotorStrength
float myFloat__afBigMotorStreangth
float myFloat__afDuration
Game.ShakeController(myFloat__afSmallMotorStrength, myFloat__afBigMotorStreangth, myFloat__afDuration)Related Pages
- Game
- Game.ShakeCamera(...)
Additional References
View this function’s page on the Fallout 4 Creation Kit Wiki
