The createchild command is used to create a child object that the object can interact directly with the block.
"then(createchild, x position, y position, object, child index)"
Argument |
Function |
x position |
The x position, relative to the object, where the child will spawn. |
y position |
The y position, relative to the object, where the child will spawn. |
object |
The type of object that the child is. |
child index |
The index in which the child is being stored under, used in other scripts. |
And example of the createchild command used in a script is as follows...
The following script spawns three slot machine children on create.
if(create)
{
then(createchild,32,0,slot,slot_1)
then(createchild,64,0,slot,slot_2)
then(createchild,96,0,slot,slot_3)
}
|
|