Global Command: startHapticEffect

From The Official Visionaire Studio: Adventure Game Engine Wiki

Start a previously created haptic effect for devices which support haptic effects.

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


Syntax

startHapticEffect(effectID)


Parameters

Parameter Type Description
effectID int Id of the created effect.


Return values

Type Description
boolean Status


Examples

Example 1: Create a haptic ramp effect and start it.

local effectID = createHapticEffectRamp('ramp', 5000, -1, 0x4000, -0x4000, 1000, -1, 1000, -1, 'cartesian', 1, -1)
startHapticEffect(effectID)