2cis there any way to echo dev1 out after changing a console command without waits?
I want to have a key in dota that is basically toggleautoattack on; echo autoattack on but I recall trying this before and it not working cause you cant turn developer 1 on and echo output and turn it off without waits
any workarounds?
I don't really know much about dota's scripting in particular but I'll just assume it's the same as tf2.
What you've basically done is made the console output visible through developer 1 and then on the same frame turned it invisible. The developer command doesn't just put console text onto the screen, it also toggles whether it's shown altogether or not; as soon as developer 0 happens any console text on the screen disappears.
What you need to do is make use of some filters. Try changing your script to look something like
con_filter_enable 1
con_filter_text "|>" //something that doesn't show up in normal console spew
con_filter_text_out ""
con_notifytime 10
developer 1
bind "KEY" "toggleautoattack on; echo |>autoattack on"
or maybe
con_filter_enable 1
con_filter_text "|>" //something that doesn't show up in normal console spew
con_filter_text_out ""
con_notifytime 100000
developer 1
echo "|>autoattack on"
developer 0
alias toggleattack1 "developer 1; toggleautoattack on; alias toggleattackmode toggleattack2"
alias toggleattack2 "developer 0; toggleautoattack off; alias toggleattackmode toggleattack1"
alias toggleattackmode "toggleattack1"
bind "KEY" "toggleattackmode"