I’m building a scene to be used with a Samsung Gear VR and I’m having some trouble getting my doors to work the way I want them to. Because of the lack inputs on the headset the idea is that the user will simply look at a door for a second or two and if they are close enough the door will open. Then once they leave the trigger volume around the door, after a few seconds it will close again.
I’ve got this working using the system below but I’m having problems when I place multiple versions of that door. I’m guessing the problem is because I’m not telling the character blueprint which specific door to send the “OpenDoor” command to. I’m a complete beginner when it comes to this so I don’t really know where to go from here, could someone help?
When I’ve only got one door in place this system works fine, but once there is more then one the doors start behaving strangely. Some never open, some open and close when entering the trigger volume of a different door.
Here is the blueprint for the door:
Off the edge is the timeline and rotator to actually move the door.
Here is the Raycast section, I’ve added this to the standard First Person character blueprint:
I’m pretty sure the problem is that I’m sending the “OpenDoor” command from the player to all doors as opposed to the specific door being looked at, but I wouldn’t know how to define that. Can anyone help?