ok basicly i want my players to be able to walk up to lets say a draw click E and the draw opens i also want them to be able to close the draw with E ive looked around a bit and couldnt find anything that worked properly helps appricated
i meant more like click E to open draw draw opens another issue is there is 3 draws in the desk and i want the player to be able to open/close them indpendently
I’m not sure if I understood correctly, but I here’s how you activate matinee by button.
- Grab a box trigger into the scene
- Open level blueprint and with it selected, right click and (box_trigger) > collision > on component overlap
- Select the matinee and right click in graph, "create reference to the (matinee_actor)
- Drag from it and add a node “play matinee” or something
I did this from mind so it might not work, but I tried
For your Drawer blueprint, you can load a widget that says the Press E if the player is close enough.
To detect pressing E then you could add an input event in the player controller for E. When it is pressed you can do a Line Trace and see if it hits your Drawer. If it hits then it tells the Drawer its been interacted with.
The drawer can have a function to be called when it is interacted with. I would not use a matinee for this if all it has to do is open. Maybe use a Timeline in the Drawer Blueprint that animates it opening when played and closing when reversed. Then in your interaction function you can just toggle between play and reverse on that timeline.