Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion Docs/API.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,9 @@ The Lua state and all local variables are reset after each game reload. For keep

Example:
```lua
PersistentVars = {}
if not PersistentVars then
PersistentVars = {}
end
...
-- Variable will be restored after the savegame finished loading
function doStuff()
Expand Down