ParaToxic Posted May 6, 2012 Share Posted May 6, 2012 Hey I want to learn lua for scripting objects in the Editor.Now I want to turn a child of a model in the script ,but I become an error when I save it. Here my try require("scripts/class") local class=CreateClass(...) function class:CreateObject(model) local object=self.super:CreateObject(model) object.outer = self.model:FindChild("Outer") -- here I become an error end Quote Link to comment Share on other sites More sharing options...
AggrorJorn Posted May 6, 2012 Share Posted May 6, 2012 have you tried: object.model:FindChild("Outer") Quote Link to comment Share on other sites More sharing options...
ParaToxic Posted May 7, 2012 Author Share Posted May 7, 2012 Thanks Quote Link to comment Share on other sites More sharing options...
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.