Readgamevar - EDukeWiki

# Readgamevar

From EDukeWiki
Revision as of 04:20, 20 October 2013 by Helixhorned (talk | contribs) (clarify what happens when the named var is not in the cfg)

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.

Retrieved from "http://wiki.eduke32.com/w/index.php?title=Readgamevar&oldid=11693"
Categories:

- EDuke32 specific commands
- Gamevar manipulation