Yue Posted Monday at 08:07 PM Posted Monday at 08:07 PM Ela = {} Ela.name = "Ela" Ela.bone = nil Ela.player = nil function Ela:Load() self.player = self.entity self.bone = self.entity:FindBone("Head") end function Ela:Update() self.player.skeleton:FindBone("bone") self.entity:Move(0.001,0,0) end RegisterComponent("Ela", Ela) return Ela Quote
Solution Josh Posted 5 hours ago Solution Posted 5 hours ago Ela = {} Ela.name = "Ela" Ela.bone = nil Ela.player = nil function Ela:Load() self.player = Model(self.entity) --cast to model class self.bone = self.player.skeleton:FindBone("Head") end function Ela:Update() self.player.skeleton:FindBone("bone") --yes, like this self.entity:Move(0.001,0,0) end RegisterComponent("Ela", Ela) return Ela 1 Quote My job is to make tools you love, with the features you want, and performance you can't live without.
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.