ParaToxic Posted May 6, 2012 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
AggrorJorn Posted May 6, 2012 Posted May 6, 2012 have you tried: object.model:FindChild("Outer") Quote
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.