Thought it would be easiest to ask then to go through bunch of random posts, I’d like to add an animation to this clipboard here (just a skeletal mesh, used one bone to animate it) and I’ve already made a simple animation in blender and imported that as well (yes, the skeletons connected properly)
I would like to make it simply play the single animation without looping after, lets say when I press “E”, what would be the easiest way to do that?
I have also already made a blueprint of it as I assume it’s needed.
Hey @KMzuru!
If you are looking for the absolute simplest way you can just call play animation on your mesh (assuming you have the E interaction already set up) but this will break the animation blueprint if you have one set up for your clipboard. For example, I called this from the player character to jog forward once with no looping:
Ahhhh that’s my problem, I tried some other stuff and pressing E does nothing in the clipboards visual script, I’m used to 2D engines where it just works, for example when I run on the players blueprint to quit the game on E pressed, it works, but not on the clipboards visual script, I’m assuming it’s super simple so how would I make it do work.
Hey @KMzuru,
I highly suggest setting up an interaction system now to save you some headache later. Interfaces will keep it clean and expandable. Check out this non-Epic affiliated tutorial to help you get started:
It may seem like a lot at first, but it will keep things clean and easy down the line because it is reusable and simpler than it appears at first glance.
Thanks for the pointer on interfaces but I don’t seem to understand how to use it properly (sorry if I’m being annoying… just not used to visual scripting and more complicated 3D stuff)
(BPI just has “OnInteract” function, “sign” is referencing the skeletal mesh)
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.