Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: abend on December 10, 2019, 08:37:20 PM

Title: Wait
Post by: abend on December 10, 2019, 08:37:20 PM
I can't figure out how to approach this. I'm sure somebody somewhere has done this. I have a VR game, I am out of town so I didn't bring the headset. So I'd like to add something to where I wait for controller input so that I can simulate it with literally any other kind of input. So I was initially thinking wait for A or B. I'm sure people have things where you could press more than one button to start something. I'm making this harder than it has to be right?
Title: Re: Wait
Post by: Thore on December 10, 2019, 09:23:19 PM
Hi,

Can you describe what’s the stumbling block exactly? You can add actions that listen for input and then take it from there. For prototyping, you can use get key down, or you can use get button down, get axis which uses the input manager.
Title: Re: Wait
Post by: abend on December 10, 2019, 10:39:06 PM
sure, like I have a wait that is waiting for oculus touch button down. but I want to ADD also accept xbox controller button1 or spacebar. it seems like I can only wait for a single specific input instead of a mouse, keyboard or controller input. this is just for testing, I don't want to rework all of my inputs to use a mouse click and then have to put them all back the way they were for VR input. I figured this was an easy thing I was missing, Wait for A or B.
Title: Re: Wait
Post by: tcmeric on December 11, 2019, 12:00:39 AM
In the start state, just have an input listener for more than one type of input.

Example.

Start State:
Listen for space key --> space key event
Listen for VR trigger key --> trigger key event.

You can listen for as many types or keys of input as you need, in any state. Just add more than one action.