Maybe I’m over thinking this or over engineering it, but I’m stumped
I created a light switch skeletal mesh model in Blender. It has 2 animations, ON and OFF.
I imported it into UE4 and all is good so far
I then have a ULightSwitchObject class, derived from AActor, which has a bool variable on it, to say if the light switch is on or off
Lets say the bool name is bState (false = off, true = on)
I have a Use() method that’s called when you interact with the mesh, that toggles bState perfectly. all is working well so far.
my question now, how do I play the required animation, based on the bState value?
I’ve searched everywhere and the only examples I find, are either serious blend space animations for character movement, or blueprint examples
I need something simple, to play a single animation, based on a variable in the class.