I have created a simple game with a VR character and a vehicle. All sweeping movement and collisions for the character and the vehicle pawn is working correctly. At game start the viewer is seeing through the eyes of the character. I need a way to possess the vehicle at some point during the game. My preference is that it’s a trigger volume near the vehicle (the vehicle is hidden as an Easter egg and I don’t want someone to accidentally find it by hitting the wrong button).
I found a video that does exactly what I want but it’s for a third person game where they’re using a keyboard key to switch characters.
The basic steps they’re using are as follows.
- Create an additional motion controller
- Go into the blue print for the motion controller
- Setup blue print so that on hitting key “1”, the “Get all Actors of Class” function is activated for the vehicle blue print, and then it is possessed by the motion controller.
I’m trying to duplicate this for VR except using a “trigger volume” for key “1”. The problem I’m having is I don’t know how to tell the blue print what trigger volume to use when I’m in the blue print for the motion controller.