VR disable teleport during level sequence
What I am working at: (just for a better understanding)
I try to develope some new kind of artwork with VR. I want to mix the classical artstuff, like painting, videoart, sculpture, photography and poem to one big artworld. Therefor I am using the "normal" structure of pc games. Going from Level to Level, finding keys to open portals and so on.
My Problem: (You could read from here)
As the title says: I want to disable my teleport function during a level sequence is playing and after that I want to reactivate it. I am using the standard VR Template, so in some levels teleport is the only way to move. I tried many different things, but nothing seems to work:
Starting from EventBeginPlay:
I think it is not that difficult, but I am missing the point. And also I am not so good with BP. So theoretically I know what to do, but I don't know how to.
If anybody could help, I would be really thankful.
asked Sep 17 '18 at 10:50 AM in VR
To do this you will need to dive a bit deeper into Blueprints. I'd accomplish this by creating an 'AllowTeleportation' boolean in the MotionControllerPawn.
Then on the InputActions (TeleportLeft and TeleportRight) I'd use a Branch node -> If 'AllowTeleportation' is true, activate teleporter. If it is false, do nothing.
And then, for example in your level blueprint: Get Player Pawn -> Cast to MotionControllerPawn -> Drag off from "as motion controller pawn" and set your 'AllowTeleportation' variable.
I like your idea of 'one big artworld'!
answered Sep 17 '18 at 02:07 PM
Alex O ♦♦ STAFF
Follow this question
Once you sign in you will be able to subscribe for any updates here