So looks like SoftTargetEnemy has 4 states: 0: off, 1: Gamepad, 2: Keyboard, 3: Always
/run local k,v = "SoftTargetEnemy" v = GetCVar(k) SetCVar(k, (v == "0" and 3 or 0)) print("Action Targeting " .. (v == "0" and "Enabled" or "Disabled" ))
[added]
Still doesn’t seem to toggle the Enable Action Targeting checkbox in the UI unless you do a ReloadUI
If you care about the checkbox (doesn’t actually affect functionality).
/run local k,v = "SoftTargetEnemy" v = GetCVar(k) SetCVar(k, (v == "0" and 3 or 0)) print("Action Targeting " .. (v == "0" and "Enabled" or "Disabled" )) ReloadUI()