Global Command: startHapticRumble
From The Official Visionaire Studio: Adventure Game Engine Wiki
Start a haptic rumble effect for devices which support haptic effects.
Syntax
startHapticRumble(strength, length)
Parameters
| 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 |
Examples
Example 1: Start a 5 second haptic rumble effect.
local rumble = startHapticRumble(50, 5000)