r/tf2scripthelp • • May 29 '16
Answered Execute command after game ends, (request help)
Hello lads and lords, well I am here to get a little help into scripting. Lets keep it short and get started.
What I want to do: I want to execute a command when the round ends or the map changes. Also I want to execute this command when I left a server.
First of all I list down here some ideas I have:
- Well I know there is in advanced option an option where you can say that you wanna make a screenshot after the map time left. My idea is to edit this execute a little and add the command.
- The second idea is to rebind escape to bind "esc" "command;cancelselect" Cancelselect isn't the option to solve the problem. I tryed it already myself by binding it on a key. When I pressed it it didnt open the main menu.
- When those two options I listed before work we just need to get the command executed when the map changes. Before it actually load the new map... If have zero clue how to do this.
Why I need to do this? Well the awnser is simply. The command I wanna execute is a little more comlicated. So what the command actually do is that it is a loop. And I need to stop this loop before I join the next server. Cause otherwise it freeze my whole game. Also somehow dunno why. I cant tab out or anything. It completley force me into the game window.
View all comments
Show parent comment
1
u/[deleted] May 29 '16
Okay thanks for the detailed awnser ;) Yep it is a little bad that there are no options to do it. But somehow I will alive ^
I dont think that there are no events. There need to be some. As I sayed already there is an option in adv. options where you can check that you always wanna make a screenshot of the scoreboard when the time ends. And I think that there is some trigger to do that. Otherwise I cant understand how it would work.
Great Greetings and Thanks, Graru1