However, even with that I still did manage to get some string to be read from GetCVarString via the compiler I use on linux. If I play around with it enough, I may be able to replicate the unsupported feature's behavior....
Original post:
If a user-defined cvar is a string, I should use GetCVarString to retrieve its value, right? I tried that with this script:
Code: Select all
script 781 (void)
{
print(s:GetCVarString("testtt"));
}
Spoiler: result (Open)
After that I tried using this code:
Code: Select all
script 781 (void)
{
ConsoleCommand("set testtt hi");
print(s:GetCVarString("testtt"));
}
Spoiler: result (Open)So, how does this work? Can you guys try these scripts and see if it works? Maybe something's up with my compiler but I doubt it...


[/spoiler]

