Caronte3D Posted 3 hours ago Posted 3 hours ago If I have a Lua script (component) attached to an animated model, how can play one of these animations at start? Quote
Solution Josh Posted 3 hours ago Solution Posted 3 hours ago Cast the entity to a model, and then call the Animate method: function MyScript:Start() local model = Model(self) if model ~= nil then model:Animate("walk") end end https://www.leadwerks.com/learn/Model_Animate?lang=lua 1 Quote Let's build cool stuff and have fun.
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.