C_GamePad.SetVibration

From Warcraft Wiki
Jump to navigation Jump to search

Makes the gamepad vibrate.

C_GamePad.SetVibration(vibrationType, intensity)

Arguments

vibrationType
string : ["Low", "High", "LTrigger", "RTrigger"]
intensity
number : [0.0-1.0]

Details

  • Vibration duration last for around 1 second.
  • "Trigger" type vibrations appear to be only supported by the PS5 controller, as trigger haptic vibration.

Example

Vibrates the gamepad at 100% intensity.

C_GamePad.SetVibration("High", 1)

Patch changes

Shadowlands Patch 9.1.5 (2021-11-02): Added.