PDA

View Full Version : is this possible?


olli
01-02-2012, 14:13
i'm just learning scripting, made a very simple plugin that turned on a few console commands. i know i could just put those in a config file but i wanted to learn slowly.

but is it possible use CreateConVar to combine a few console commands into one new one? i'm kinda stumped on this if it's possible.

Peace-Maker
01-02-2012, 14:20
Yes. You could hook the changes (HookConVarChange) of your own new convar and just set the other convars as you like when your own one changes.

olli
01-02-2012, 20:17
cool, thanks.