playMaker

Author Topic: Test when Oculus headset is removed?[SOLVED]  (Read 262 times)

ToxicFrog

  • Junior Playmaker
  • **
  • Posts: 62
    • View Profile
Test when Oculus headset is removed?[SOLVED]
« on: November 05, 2018, 05:58:05 PM »
Hi Playmakers,

I need an action that will trigger an event when the Oculus Rift HMD headset is removed and put on. (I need the level to restart if it's been removed for X seconds).

I know the Rift detects when it is put on and taken off, but is there a playmaker action that can expose this for me to use?

Thanks, and I'll reply with the results of any suggestions!
« Last Edit: November 23, 2018, 05:38:44 AM by jeanfabre »

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 4192
    • View Profile
    • jinxtergames
Re: Test when Oculus headset is removed?
« Reply #1 on: November 06, 2018, 01:38:51 AM »
Hi.
if you can find it somewhere in c# i can make the action for you :)

tcmeric

  • Beta Group
  • Hero Member
  • *
  • Posts: 694
    • View Profile
Re: Test when Oculus headset is removed?
« Reply #2 on: November 06, 2018, 06:08:51 AM »
Hi, you can try this action. I havent tested it, but in theory it should work. It tests if the user has the headset on with a bool. Also, make sure that you use the playmaker action "application run in background" to keep the headset running, otherwise it will turn off.


ToxicFrog

  • Junior Playmaker
  • **
  • Posts: 62
    • View Profile
Re: Test when Oculus headset is removed?
« Reply #3 on: November 06, 2018, 08:47:37 AM »
THANK YOU, tcmeric!!!

That's exactly what I needed - works perfectly!

You, Sir, are my hero.