Difference between revisions of "Global Command: startHapticEffect"
From The Official Visionaire Studio: Adventure Game Engine Wiki
(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...") |
(No difference)
|
Revision as of 11:31, 5 August 2023
Start a previously created haptic effect for devices which support haptic effects.
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)