Skip to content

Instantly share code, notes, and snippets.

@XANi
Created June 29, 2014 12:40
Show Gist options
  • Save XANi/fbb7b948b7169419236e to your computer and use it in GitHub Desktop.
Save XANi/fbb7b948b7169419236e to your computer and use it in GitHub Desktop.
dota
bind SPACE "+dota_camera_follow; +dota_camera_follow; -dota_camera_follow"
Enter that into the console and space will center with a single tap. It doesn't lock the camera though so I will see if there is a better bind.
edit:
dota_camera_follow_doublepress_time 100
entering this is likely needed to make it work right. Tried some stuff and not sure how to reset it to check if it is strictly necessary.
bind space "dota_camera_center"
center on hero first press and follows until you edge pan, but it will center on non hero unit if you have it selected unlike the first command.
bind SPACE "+dota_camera_follow; +dota_camera_follow; +dota_camera_center"
centers on hero even if you have non-hero unit selected. follows until you edgepan.
@pinguluk
Copy link

thanks, dota_camera_follow_doublepress_time 100 did the trick

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment