inpVibrateFor

Sets vibration on both motors for a specific duration. Takes controller (Int), leftSpeed (Int from 0 to 65535), rightSpeed (Int from 0 to 65535), durationMs (Int in milliseconds). Returns nothing.

Input

Parameters & Returns

Parameters

controller Int
leftSpeed Int
rightSpeed Int
durationMs Int

Returns

Void

Quick Summary

Sets vibration on both motors for a specific duration. Takes controller (Int), leftSpeed (Int from 0 to 65535), rightSpeed (Int from 0 to 65535), durationMs (Int in milliseconds). Returns nothing.

Technical Exegesis...

Sets the vibration intensity for both the left and right motors of the controller, automatically stopping after the specified duration in milliseconds.

The speed values range from 0 to 65535, where 0 is no vibration and 65535 is maximum intensity. The left motor is typically the low-frequency rumble motor, while the right motor is the high-frequency vibration motor.

The vibration automatically stops after durationMs milliseconds. You can manually stop it earlier using inpStopVibration().

Example

Example.bam
; No example implemented yet