Mod:Creation Kit/ShakeController - Game

Member of: Mod:Creation Kit/Game Script

Shakes the controller with the specified strength, for the specified length of time.

Syntax
Function ShakeController(float afLeftStrength, float afRightStrength, float afDuration) native global

Parameters

 * afLeftStrength: The strength of the left motor. Clamped from 0 to 1.
 * afRightStrength: The strength of the right motor. Clamped from 0 to 1.
 * afDuration: How long to shake the controller - in seconds.

Return Value
None.

Examples
Game.ShakeController(0.5, 0.5, 2.0)
 * Shake the controller for 2 seconds