• Setting NPC Cvars?
    0 replies, posted
I'm trying to change the NPC settings on my server and everything i've tried doesnt work. I've tried adding to my server.cfg: [CODE]sk_barnacle_health 1000[/CODE] I've tried adding directly to my swep: [CODE]RunConsoleCommand("sk_barnacle_health", "1000")[/CODE] I've even tried creating a new lua file in lua/autorun and lua/autorun/server : [CODE]RunConsoleCommand("sk_barnacle_health", "1000")[/CODE] I've even tried adding the code below [I]RunConsoleCommand("mp_friendlyfire", "1")[/I] in init.lua (gamemode is TTT): [CODE]RunConsoleCommand("sk_barnacle_health", "1000")[/CODE] EDIT: Oddly, the cvar managed to work 6 hours ago. But then it stopped working completely. Anyone know how i can get the cvar to work?
Sorry, you need to Log In to post a reply to this thread.