Readgamevar

From EDukeWiki
Revision as of 03:20, 20 October 2013 by Helixhorned (talk | contribs) (clarify what happens when the named var is not in the cfg)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

readgamevar <varname>

Reads a gamevar that was saved with savegamevar from the user's configuration file. If the named gamevar is not found in the configuration file (for example, because savegamevar was never issued for it), <varname> equals 0 after readgamevar finishes.

For per-actor or per-player gamevars, the value at the current actor or player index gets restored, not the values for all actors or players.