Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: ToxicFrog on November 05, 2018, 07:58:05 PM

Title: Test when Oculus headset is removed?[SOLVED]
Post by: ToxicFrog 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!
Title: Re: Test when Oculus headset is removed?
Post by: djaydino on November 06, 2018, 03:38:51 AM
Hi.
if you can find it somewhere in c# i can make the action for you :)
Title: Re: Test when Oculus headset is removed?
Post by: tcmeric 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.

Title: Re: Test when Oculus headset is removed?
Post by: ToxicFrog on November 06, 2018, 10:47:37 AM
THANK YOU, tcmeric!!!

That's exactly what I needed - works perfectly!

You, Sir, are my hero.
Title: Re: Test when Oculus headset is removed?[SOLVED]
Post by: loosetripper on February 01, 2020, 02:58:50 AM
Can someone show an example how to use this?