Finish a level then loads the next

Avatar
MasterLagger
1,695 Posts
Posted Aug 04, 2011
How do I get a level/map to load after completing another level/map?
Advertisement
Registered users don’t see ads! Register now!
Avatar
baca25
342 Posts
Posted Aug 04, 2011
Replied 2 hours later
Well I don't know how your ending your map, but the basic thing to do is to make a point_servercommand entity. Name it. Then in the Outputs of whatever your using to trigger the entity, have the Target Input on "Command" and have the Parameter be whatever you would type in the console. For instance it could look like, "changelevel mp_coop_lostintransition3" If you are using the exit instances in the game, then your going to have to go into the instances, copy all the info in the instance, find what ends the map, and edit it to look like what I just told you. Make sure you don't actually change instances, but copy it and paste it into your map. Like I made my own prefab to make the exit elevators actually work and make you go to the hub on coop maps by doing this.
Avatar
MasterLagger
1,695 Posts
Posted Aug 04, 2011
Replied 8 hours later
Well mine is single player, maybe I should worry about completing the other 21 maps before I start worrying about this. Thanks anyway.
Avatar
baca25
342 Posts
Posted Aug 05, 2011
Replied 1 hour later
21 maps? If you are making normal exits, then I would deffenatly make that prefab of your exit now so you don't have to go back and edit 21 maps.
Edit
Just thought about it, and your output to trigger the point_servercommand entity would have to be different every time... I guess I would just copy whatever your using to trigger the point_servercommand and paste it into position each map, and then save the rest as a prefab.
Avatar
KenJeKenny!?
238 Posts
Posted Aug 05, 2011
Replied 6 hours later

http://developer.valvesoftware.com/wiki ... hangelevel

Works great for me so far :smile:

Advertisement
Registered users don’t see ads! Register now!
Avatar
MasterLagger
1,695 Posts
Posted Aug 05, 2011
Replied 16 hours later
Yeah I'll just copy and paste a script and an instance then edit them.