Yue Posted April 28 Posted April 28 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 Murphy's Law: We don't fix bugs, we document them as features. – Murphy Games
Solution Josh Posted April 29 Solution Posted April 29 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.