Global Command: startHapticEffect

From The Official Visionaire Studio: Adventure Game Engine Wiki
Revision as of 11:31, 5 August 2023 by EK (talk | contribs) (Created page with "Start a previously created haptic effect for devices which support haptic effects. {| class="ts" |- | style="width:15%" | Related functions | Global Command: createHapticEf...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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

Related functions createHapticEffectCondition | createHapticEffectConstant | createHapticEffectLeftRight | createHapticEffectPeriodic | startHapticEffectRamp | 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)