Save
Script function

world.Save

DOC_scripting Read about scripting

Type

Method

Summary

Saves world configuration.

Prototype

boolean Save(BSTR Name);

DOC_data_types View list of data type meanings


Description

Saves the current world, under the specified filename. Supply a blank file name to save under the current name.


VBscript example

world.save ""   ' Saves under current name



Jscript example

world.Save("");   // Saves under current name



PerlScript example

$world->Save("");   # Saves under current name



Python example

world.Save("")   # Saves under current name



Lua example

Save("")   -- Saves under current name



Lua notes

The filename is optional, if not supplied the file is saved under its current name, if any.



Return value

eOK: saved OK
any other value: not saved


DOC_errors View list of return code meanings

(Help topic: function=Save)

DOC_contents Documentation contents page