Difference between revisions of "Lua:SaveMapData"

From Fortress Forever Wiki
Jump to navigationJump to search
(Created page with "{{Infobox manual/Header}} ==SaveMapData== Saves a Lua object as a serialized file allowing data to be transferred between map changes. ==Usage 1== <pre>SaveMapData( luaobj...")
 
(No difference)

Latest revision as of 07:28, 24 June 2013


SaveMapData

Saves a Lua object as a serialized file allowing data to be transferred between map changes.

Usage 1

SaveMapData( luaobject )

Input

  • luaobject(object) The table, string, boolean or number to be saved.

Output

Returns: nothing

Example

local datatable = { 1, 2, 3 }
SaveMapData( datatable )

Usage 2

SaveMapData( luaobject, suffix )

Input

  • luaobject(object) The table, string, boolean or number to be saved.
  • suffix(string) A suffix to add to distinguish different files.

Output

Returns: nothing

Example

local datatable = { 1, 2, 3 }
SaveMapData( datatable, "table" )