Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
|
ardiscript:duplicateobject [2018/04/16 22:36] optrix created |
ardiscript:duplicateobject [2018/04/27 05:57] (current) optrix [Parameters] |
||
|---|---|---|---|
| Line 35: | Line 35: | ||
| If defined, this asset will be parented to the specified asset and it's //position// will be converted to local co-ordinates around the parent asset. | If defined, this asset will be parented to the specified asset and it's //position// will be converted to local co-ordinates around the parent asset. | ||
| + | |||
| + | ====See Also==== | ||
| + | |||
| + | [[addshape]] [[addmesh]] [[addbeacon]] [[addparticle]] [[remove]] | ||
| ====Examples==== | ====Examples==== | ||
| + | |||
| + | <code> | ||
| + | <duplicateobject Target="SomeObject" Position="10,0,10" Name="NewObject" /> | ||
| + | </code> | ||
| + | |||
| + | > This function will find an asset called **SomeObject** and create a duplicate. It will place the duplicate at the respective x,y,z coordinates 10,0,10 and give it the new name **NewObject**. | ||
| + | |||
| + | <code> | ||
| + | <duplicateobject Target="SomeObject" Position="10,10,10" Name="ChildObject" AttachTo="NewObject" /> | ||
| + | </code> | ||
| + | |||
| + | > This function will find an asset called **SomeObject** and create a duplicate. It will place the duplicate at the respective x,y,z coordinates 10,10,10 and give it the new name **ChildObject**. It will then find the asset called **NewObject** and parent itself to it. | ||