playMaker

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

ToxicFrog

  • Beta Group
  • Full Member
  • *
  • Posts: 139
Test when Oculus headset is removed?[SOLVED]
« on: November 05, 2018, 07: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, 07:38:44 AM by jeanfabre »

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Re: Test when Oculus headset is removed?
« Reply #1 on: November 06, 2018, 03: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: 768
Re: Test when Oculus headset is removed?
« Reply #2 on: November 06, 2018, 08: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

  • Beta Group
  • Full Member
  • *
  • Posts: 139
Re: Test when Oculus headset is removed?
« Reply #3 on: November 06, 2018, 10:47:37 AM »
THANK YOU, tcmeric!!!

That's exactly what I needed - works perfectly!

You, Sir, are my hero.

loosetripper

  • Playmaker Newbie
  • *
  • Posts: 1
Re: Test when Oculus headset is removed?[SOLVED]
« Reply #4 on: February 01, 2020, 02:58:50 AM »
Can someone show an example how to use this?