Portal 2: How to end single player game
Post Reply
Quote
Re: Portal 2: How to end single player game
Posted by Necromancer on Wed Aug 1st at 3:28am 2012


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.



Quote
Re: Portal 2: How to end single player game
Posted by Niborius on Wed Aug 1st at 7:09am 2012


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 smiley

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

Good luck!






Quote
Re: Portal 2: How to end single player game
Posted by Necromancer on Wed Aug 1st at 7:47pm 2012


Thanks, I'll try that for my next level. (My first map is posted now: Subject 12)

Quote
That's how I did the slow-motion part in my level

Do you remember what command you inserted for this effect? Thanks!





Post Reply