https://zdoom.org/wiki/CVARINFO
this states that:
latch: Changes to this CVAR only take effect upon starting a new game. This is only the case when changing it from the console, however.
is this wrong? when I use this and change the latched cvar with ACS script - it will not change until I start a new game.
I need to set a cvar in the start of the game, than the user cant manually change with the console during that game. so I need ACS to be able to change the value, but not the console.
cvar latch
Moderator: GZDoom Developers
Forum rules
Please construct and post a simple demo whenever possible for all bug reports. Please provide links to everything.
If you can include a wad demonstrating the problem, please do so. Bug reports that include fully-constructed demos have a much better chance of being investigated in a timely manner than those that don't.
Please make a new topic for every bug. Don't combine multiple bugs into a single topic. Thanks!
Please construct and post a simple demo whenever possible for all bug reports. Please provide links to everything.
If you can include a wad demonstrating the problem, please do so. Bug reports that include fully-constructed demos have a much better chance of being investigated in a timely manner than those that don't.
Please make a new topic for every bug. Don't combine multiple bugs into a single topic. Thanks!
-
- Posts: 13881
- Joined: Tue Jan 13, 2004 1:31 pm
- Preferred Pronouns: She/Her
Re: cvar latch
So this was a miswording in the wiki. But there is still an issue here:
Changing a latched cvar in the menu does not reflect the upcoming change, the menu instead sticks to the old cvar the way it was.
Changing a latched cvar in the menu does not reflect the upcoming change, the menu instead sticks to the old cvar the way it was.