Global Command: startHapticRumble

From The Official Visionaire Studio: Adventure Game Engine Wiki

Start a haptic rumble effect for devices which support haptic effects.

Related functions createHapticEffectCondition | createHapticEffectConstant | createHapticEffectLeftRight | createHapticEffectPeriodic | createHapticEffectRamp | startHapticEffect | stopHapticEffect | stopHapticRumble


startHapticRumble(strength, length)


Parameter Type Description
strength int Strength of the rumble to play (0 to 100)
length int Length of the rumble to play in milliseconds, -1 for infinite

Return values

Type Description
boolean Status


Example 1: Start a 5 second haptic rumble effect.

local rumble = startHapticRumble(50, 5000)