How do you get the vive controller to generate a haptic feedback?
You want the function
SteamVR_Controller.Input([the index of the controller you want to vibrate]).TriggerHapticPulse([length in microseconds as ushort]);
Note that the haptic pulse length in my experience must be between 1-3999 (inclusive).
Also, I suggest you look through the example scripts in the SteamVR plugin to learn about how to access SteamVR functionality - there’s no documentation, but the reference scripts are a great place to learn how to get stuff done!