Create Object: Difference between revisions
no edit summary
| Nikitaivanov (talk | contribs)  (Created page with "Creates a copy of the input object.  /uploads/Create Object.png  Input:  * Original: The object to be copied.  Output:  * Copy: Returns the copy of the object.  However this does not copy the scripts inside a block, only the _shell_ of the block.  == Notes ==  Create Object, when inputted None, uses the last object created on this script.  Making *too* many objects will affect performance negatively, so clone responsibly.   There's also a limit of 4096 cr...") | No edit summary Tags: Mobile edit Mobile web edit Advanced mobile edit | ||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
| {{Block | |||
| |image=Create Object.png | |||
| |type=s | |||
| |folder=objects | |||
| |input1={{Port|e|Before}} | |||
| |input2={{Port|o|Original}} | |||
| |output1={{Port|o|Copy}} | |||
| |output2={{Port|e|After}} | |||
| }} | |||
| [[ | Creates a copy of the input [[object]]. | ||
| Does not copy the scripts inside a block, only the ''shell'' of the block. | |||
| == Notes == | == Notes == | ||
| * If the input is None, the output will be the last object created by this script (But not a copy of said object!). | |||
| * There is a limit of 4096 objects. Attempting to create more objects when the limit has been reached will display a "Too many objects" error: | |||
| : [[File:Error Too many objects.png|frameless|center]] | |||
| * Creating objects has a large effect on performance, try to reuse already created objects when possible. | |||
| == Related == | |||
| * [[Destroy Object]] | |||
| [[Category:Blocks]] | [[Category:Blocks]] | ||
