r/Tf2Scripts • • Jul 01 '20
Question Why can some commands only be ran in huds?
Ex: The command changeloadout <classname> is ran when you click on one of the buttons in the loadout panel, but you can't actually run it in the console or a script. Same for the engine command.
4
Upvotes
5
u/NotAliasing Jul 01 '20
Iirc most of the time these commands are for that specific use and are disabled outside of the loadout screen. Example: the one you stated is only for that screen, and the ingame loadout binds use a different command.
1
u/just_a_random_dood Jul 01 '20
Yeah, if you ant to change loadouts, you can just use this script I made:
alias "resup" "load_itempreset 0"bind "UPARROW" "load_itempreset 0; alias resub load_itempreset 0"bind "LEFTARROW" "load_itempreset 1; alias resub load_itempreset 1"bind "DOWNARROW" "load_itempreset 2; alias resub load_itempreset 2"bind "RIGHTARROW" "load_itempreset 3; alias resub load_itempreset 3"bind "mouse3" "resup"it's basically a quick resp script, but all you need is the lines with the arrow key names in them and then delete everything after the semicolon, and you can edit those yourself.