#Set CVar on Login or reload

1 messages · Page 1 of 1 (latest)

zenith bloom
#

Hi all, I am trying to make a Weakaura to turn on ActionButtonUseKeyDown whenever I log in or reload my UI (to offset the current problem with ElvUI). However, I am not really sure how to do so. I am comfortable with WAs for abilities and even chat log events, but don't even know where to begin here. Could anyone help out?

tranquil stream
#

If you use Details there's a section for snippets to run on login

zenith bloom
tranquil stream
#

"Auto Run Code"

zenith bloom
#

Oh ok. So now I just need the code that sets CVars?

#

I know the console command is
"/console ActionButtonUseKeyDown 1"

#

Ok, so I found the right code, however, when I added it to the Auto Run Code section under Event: On Initilization it doesn't seem to do anything

#

SetCVar(ActionButtonUseKeyDown,1)

#

That is what I added

#

@tranquil stream This is the error it is giving me

tranquil stream
#

You're trying to send a var which doesn't exist. Make it a string.

zenith bloom
#

How do I make it a string?

#

I'm not very good with Lua

zenith bloom
#

Which sent this back

#

I am totally confused :/

#

I feel like a moron

tranquil stream
#

ActionButtonUseKeyDown this is a var.
"ActionButtonUseKeyDown" this is a string