Setting a variable from the UI.


(DanteX) #1

Managed to get the menu to work(yay!). Now I have a question with a bit more gravity. As it is, I have a mod that sends the players stats, position and other data to a “listener” using multicasting.

The question is; is it possible to change a variable in the code by somehow using the menus?

In other words, is it possivle to set the multicast adress(hardcoded as part of the ingame sender right now) via a menu option?


(IneQuation) #2

Of course. Make a field linked to a cvar and then use the cvar value. Can’t tell you exactly what to change, but have a look at the game options menus.