Trigger Matinee animation with specific input only when looking at object
I am playing around with making a simple First Person game (basically to figure out and prototype various gameplay elements). Currently I want a simple way to trigger a matinee animation via a specific key input.
I also want this animation to be triggered only when my crosshair is in line with the object. (I would guess it has something to do with line tracing? Not sure how to correctly implement it though.)
Let's say I want to press LMB to trigger animation and then LMB again to trigger the Reverse of that animation. The animation is simply a opening and closing drawer.
How would I go about doing something like this?
Here's a screen shot of what I have going on so far. This way the two animation are cancelling each other out. Not sure how to isolate the Play and Reverse action and set the condition for opening and closing the drawer:
Follow this question
Once you sign in you will be able to subscribe for any updates here