Lua:SaveMapData

From Fortress Forever Wiki
Jump to navigationJump to search


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" )