Home Creators Posts Import Register Favorites Logout
haven't archived this post yet. have a subscription? use the importer!

Downloads

  • SPQR.SPQRHaptics.3.var

Missing 1 full-res photo, 1 file, as this post has not yet been imported.

Content

Updating it to help others modders that are interested get vibration working on other devices quicker.


LICENSE

License changed to FC: can redistribute, remix, do whatever you want with it with no credit required. Sell it as your own and get big tips!


STEAM VR PROBLEMS

The issue I encountered was that I couldn't access the valve vr library. "The name `Valve' does not exist in the current context in".  You can't include it like "using Valve.VR" or you'll get a compilation error. I think it used to work in older vam versions because I've seen it used in some older scripts, those don't work either now. My uneducated guess is this:

if you compile the plugin as a .dll with a different .NET framework version I think it will work. 

CODE

something like this would probably work:

using Valve.VR;

...

SteamVR_Actions.default_Haptic[SteamVR_Input_Sources.LeftHand].Execute(0, 1, 10, 1); SteamVR_Actions.default_Haptic[SteamVR_Input_Sources.RightHand].Execute(0, 1, 10, 1);


params should be adapted: (float secondsFromNow, float durationSeconds, float frequency, float amplitude)


PREVIOUS VERSIONS:
https://www.patreon.com/posts/63130593


Files

Previews only

Comments

No comments found for this post.