SetParent
From MaratisWiki
(Difference between revisions)
Dahnielson (Talk | contribs) m |
Dahnielson (Talk | contribs) m |
||
Line 1: | Line 1: | ||
{{lua-function|setParent|object, parent}} | {{lua-function|setParent|object, parent}} | ||
− | Set the object's parent | + | Set the object's parent. |
+ | |||
+ | {{lua-function-param|object|object to operate on}} | ||
+ | {{lua-function-param|parent|parent}} | ||
setParent(object, parent) | setParent(object, parent) |
Latest revision as of 00:14, 9 February 2014
setParent(object, parent)
Set the object's parent.
-
object
: object to operate on -
parent
: parent
setParent(object, parent)
Zero can be used to reset parenting:
setParent(object, 0)