ShakeController - Game
Jump to navigation
Jump to search
Member of: Game Script
Shakes the controller with the specified strength, for the specified length of time.
Syntax[edit | edit source]
Function ShakeController(float afLeftStrength, float afRightStrength, float afDuration) native global
Parameters[edit | edit source]
- 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[edit | edit source]
None.
Examples[edit | edit source]
; Shake the controller for 2 seconds
Game.ShakeController(0.5, 0.5, 2.0)