ShakeController - Game

Member of: Game Script

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

SyntaxEdit

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

ParametersEdit

  • 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 ValueEdit

None.

ExamplesEdit

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

See AlsoEdit