• Ending a Garry's Mod level
    3 replies, posted
Hello, just wanted to find out how do you end level you created in GMOD? Like when you load up a save, trigger an insvisible wall and it takes you to the main menu. I've followed the guide for Portal 2 in Valve Developer Community [url]https://developer.valvesoftware.com/wiki/Ending_a_Portal_map[/url] but it just makes the screen fade out a go back to the level. Any help would be appreciated. Thanks :)
[QUOTE=julius013;48297197]Hello, just wanted to find out how do you end level you created in GMOD? Like when you load up a save, trigger an insvisible wall and it takes you to the main menu. I've followed the guide for Portal 2 in Valve Developer Community [url]https://developer.valvesoftware.com/wiki/Ending_a_Portal_map[/url] but it just makes the screen fade out a go back to the level. Any help would be appreciated. Thanks :)[/QUOTE] I don't think point_clientcmd works in GMod. Use the [url=https://github.com/garrynewman/garrysmod/blob/master/garrysmod/gamemodes/base/entities/entities/lua_run.lua]lua_run[/url] and run this: [lua] RunConsoleCommand( "disconnect" ) [/lua]
The disconnect trigger is Portal specific iirc, and GMod isn't based off of that branch.
[QUOTE=meharryp;48297310]I don't think point_clientcmd works in GMod. Use the [url=https://github.com/garrynewman/garrysmod/blob/master/garrysmod/gamemodes/base/entities/entities/lua_run.lua]lua_run[/url] and run this: [lua] RunConsoleCommand( "disconnect" ) [/lua][/QUOTE] Thanks, can you be a little more specific? I pretty much new to this stuff. Where am I supposed to type this, does this require Hammer?
Sorry, you need to Log In to post a reply to this thread.