Global Command: createHapticEffectPeriodic

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

Create a periodic haptic effect for devices which support haptic effects.

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


Syntax

createHapticEffectPeriodic(effectType, length, delay, peroid, magnitude, offset, phase, attack_length, attack_level, fade_length, fade_level, effectDirection, dir0, dir1, dir2)


Parameters

Parameter Type Description
effectType string Type of the effect
length int Duration of the effect in milliseconds
delay int
level int
period int
magnitude int
offset int
phase int
attack_length int
attack_level int
fade_length int
fade_level int
effectDirection string
dir0 int
dir1 int
dir2 int


Return values

Type Description
integer The unique id of the effect.


Examples