How I can restart the level in-game with a trigger?

Avatar
oscarcillo100
6 Posts
Posted Feb 27, 2014
My question is that i want to restar the level when I push a trigger, for example. It's possible to do this? Thanks!
Advertisement
Registered users don't see ads! Register now!
Avatar
josepezdj
2,386 Posts
Posted Feb 27, 2014
Replied 8 minutes later

oscarcillo100 wrote:
It's possible to do this?

Yes, it is:

  • Add a point_clientcommand entity in your map and name it ("command" for example).

  • Add that trigger you mentioned where you want to and add the following output:

OnTrigger > command > Command > restart

Try and confirm if that worked.

Avatar
oscarcillo100
6 Posts
Posted Feb 27, 2014
Replied 7 minutes later

josepezdj wrote:
oscarcillo100 wrote:

It's possible to do this?

Yes, it is:

  • Add a point_clientcommand entity in your map and name it ("command" for example).

  • Add that trigger you mentioned where you want to and add the following output:

OnTrigger > command > Command > restart

Try and confirm if that worked.

Yes, it worked!! Perfect! Thanks!

Advertisement
Registered users don't see ads! Register now!
Avatar
FelixGriffin
2,680 Posts
Posted Feb 27, 2014
Replied 30 minutes later
You can also use "reload", which will go back to an autosave if there is one.