ItsMods

Full Version: Dvar ingame
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
How can i create a new dvar that is editable ingame via console?
ingame in a modded private match or what?
which kind of dvar do you want to create Wink

i think i know what you are trying to do and it makes me tired
yeah ingame in a modded private match, does it matter what kind of dvar? ;p just a dvar that will change some text lets say
that example is lame cause its a well known function already. just tell us what you are trying to do
just change a text label on the screen, wasn't joking lol ;/
You mean a hud element?
Code:
level.dvarhud = getdvar("scr_dvarhud");
And then in your menu element
Code:
Elementname setvalue(level.dvarhud);
And then you put
Code:
setdvar("scr_dvarhud","Default");
in your init();
seriously...we have a tutorial section, look into it

example:
http://www.itsmods.com/forum/Thread-Crea...asics.html
http://www.itsmods.com/forum/Thread-How-...r-mod.html

and even more tuts
I have looked, otherwise I wouldn't have posted. And neither of those tuts help, I want to be able to change the text via console, via a dvar?
(03-09-2011, 16:45)d0h! Wrote: [ -> ]seriously...we have a tutorial section, look into it

example:
http://www.itsmods.com/forum/Thread-Crea...asics.html
http://www.itsmods.com/forum/Thread-How-...r-mod.html

and even more tuts

I think he knows how to make hud elements but he wants it to be controlled with a dvar. And the tutorials don't mention any of that.

edit: oh he commented before me. Nick check out my prev. post.
(03-09-2011, 16:53)Pozzuh Wrote: [ -> ]
(03-09-2011, 16:45)d0h! Wrote: [ -> ]seriously...we have a tutorial section, look into it

example:
http://www.itsmods.com/forum/Thread-Crea...asics.html
http://www.itsmods.com/forum/Thread-How-...r-mod.html

and even more tuts

I think he knows how to make hud elements but he wants it to be controlled with a dvar. And the tutorials don't mention any of that.

edit: oh he commented before me. Nick check out my prev. post.

Yeah I've just tried it, but I still cant the dvar to appear ingame
Pages: 1 2