I am learning to script and I have a question..
#8
(06-18-2011, 01:37 AM)noob007 Wrote: Can't you also do,

[lua]

box["childsname"]

[/lua]

Sorry it's been a while since I've scripted in Lua.

The advantage of doing it that way is that you can use variables. box.variableName will give you the child named variableName, but box[variableName] (no quotes) will give you the child with the name that is stored in the variable.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)