Portal 2: How to end single player game

Portal 2: How to end single player game

Re: Portal 2: How to end single player game Posted by Necromancer on Wed Aug 1st 2012 at 3:28am
Necromancer
392 posts
Posted 2012-08-01 3:28am
392 posts 1499 snarkmarks Registered: May 5th 2008
What entity or trigger do you use to end a single player game? I know the entity "game_end" is used to end a multiplayer game, so what do you use to end a single player game? Thanks.
Re: Portal 2: How to end single player game Posted by Niborius on Wed Aug 1st 2012 at 7:09am
Niborius
1007 posts
Posted 2012-08-01 7:09am
Niborius
member
1007 posts 1116 snarkmarks Registered: Mar 23rd 2009 Location: The Netherlands
Oh I know this one fortunately.

There's an entity that I believe is called "point_servercommand"
You can put it anywhere in the map, but you must trigger it at the end of the map, using a trigger_once for example. Your trigger_once entity must have an output that refers to the point_servercommand entity (So you must give that entity a name).

In the (possibly) last textfield you'll type "disconnect"

What this basically does, is the entity types in a command for you in the console.
That's how I did the slow-motion part in my level :)

I hope I recalled this correctly, because I may be a little bit off.

Good luck!
Youtube Channel: https://www.youtube.com/c/Nibgames
Re: Portal 2: How to end single player game Posted by Necromancer on Wed Aug 1st 2012 at 7:47pm
Necromancer
392 posts
Posted 2012-08-01 7:47pm
392 posts 1499 snarkmarks Registered: May 5th 2008
Thanks, I'll try that for my next level. (My first map is posted now: Subject 12)
That's how I did the slow-motion part in my level
Do you remember what command you inserted for this effect? Thanks!