I have an entity with an animation that doesn’t loop, and is not set to activate when the scene starts. I just need this to play on demand when I need it.
according to this page, i should be able to call entity.anim.play() to get the AnimComponent to start
the problem is, the API and the debugger disagree with that page. entity.anim.play() throws “entity.anim.play() is not a function” in the debugger and the API for AnimComponent doesn’t list play() as a function
So how am I supposed to set off an animation that just needs to fire when I tell it to in script? The entity just needs to stay at the initial resting state until I tell it to go.