SaveMapPrefab
Saves map objects as a prefab, to place again anywhere.
The objects’ places are kept relative to the ground under the first one; the same name overwrites - and every unit of that
prefab on the map (CreateMapPrefab) changes with it, on every player’s game. A unit among the ids is saved as its objects.
Prefabs live in the map’s prefabs/ folder and go with an export. In the editor, select the objects and use “Save as prefab”;
admins: /map prefab save <name> <id...>.
Syntax
Section titled “Syntax”SaveMapPrefab(name, ids)| Parameter | Type | |
|---|---|---|
name |
string | letters, digits, _ and -, at most 48 |
ids |
table | a list of map object ids (at most 256) |
Returns
Section titled “Returns”boolean, string - true, or false and the reason
Example
Section titled “Example”SaveMapPrefab("stall", {12, 13, 14})See also
Section titled “See also”PlaceMapPrefab · DeleteMapPrefab · the The server’s map group of the index
