MER.SpawnSchematic
Optional integration
This method requires ProjectMapEditorReborn.
Spawns a MER schematic.
Syntax
MER.SpawnSchematic "schematic_name" x_position y_position z_position x_rotation? y_rotation? z_rotation? x_scale? y_scale? z_scale?
Returns
reference to MERSchematic object
Arguments
| Name | Required | Type | Description |
|---|---|---|---|
schematic name | Yes | Any text e.g. "Hello, World!" | |
x position | Yes | Any number | |
y position | Yes | Any number | |
z position | Yes | Any number | |
x rotation | No | Any number | Default: 0 |
y rotation | No | Any number | Default: 0 |
z rotation | No | Any number | Default: 0 |
x scale | No | Any number | Default: 1 |
y scale | No | Any number | Default: 1 |
z scale | No | Any number | Default: 1 |
Details
The returned reference exposes name and object; object is the actual schematic.
Possible errors
- The schematic does not exist, is invalid, or ProjectMER cancelled its spawning event.
On a running server
Use serhelp MER.SpawnSchematic to inspect the reference generated by your installed SER version.