Activating a matinee by button
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
asked May 11 '16 at 08:37 AM in Blueprint Scripting
I'm not sure if I understood correctly, but I here's how you activate matinee by button. 1. Grab a box trigger into the scene 2. Open level blueprint and with it selected, right click and (box_trigger) > collision > on component overlap 3. Select the matinee and right click in graph, "create reference to the (matinee_actor) 4. Drag from it and add a node "play matinee" or something I did this from mind so it might not work, but I tried
answered May 11 '16 at 10:04 AM
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.
answered May 11 '16 at 02:33 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here