ImportSandboxLayer
Adds a layer saved from the Sandbox editor to the map.
Reads exports/<name>.lyr (or .xml) in the map’s folder - a layer file of CryEngine’s Sandbox editor - and adds its brushes and
geometry entities (their meshes, places, turns, materials), lights and particle effects as new map objects on a map layer of the
Sandbox layer’s name. A mesh keeps an uneven scale (stretched along its own axes); a light’s or an effect’s becomes the mean of the three. What else the layer holds (areas, AI
points, other entities) is named in the answer and left out. The format is CryEngine’s; files from Warhorse’s own modding tools have
not been tried. Admins: /map import sandbox <name>.
Syntax
Section titled “Syntax”ImportSandboxLayer(name)| Parameter | Type | |
|---|---|---|
name |
string | the file’s name without its extension |
Returns
Section titled “Returns”boolean, string - true and what came in, or false and the reason
Example
Section titled “Example”local ok, what = ImportSandboxLayer("market")Log(what)See also
Section titled “See also”ImportMap · SetMapLayer · the The server’s map group of the index
