In-game script or macro to toggle Sticky Targeting?

Title pretty much says it all. Just wondering if it’s possible to create something to toggle Sticky Targeting on with one click and off with another. Thanks for your time.

/run local k,v = "deselectOnClick" v = C_CVar.GetCVar(k) C_CVar.SetCVar(k, 1 - v) print("Sticky Targeting " .. (v == "1" and "Enabled" or "Disabled"))
1 Like

Thank you very much!