Single player hub

Single player hub

Postby FunWithGamesPL » Thu Aug 16, 2018 5:24 am

I have a question, how would i go about making a single player hub. I already made a map with doors and after the doors is a point_servercommand with a changelevel command. The problem is how do i make the game remember which levels have been completed. I plan it to be 5 doors, 4 unlocked from the start and 1 locked which unlocks after beating all the previous ones.

I also have another problem i want the single player button to load a map but for some reason it does nothing, here's the code for the button:
"ControlName" "BaseModHybridButton"
"fieldName" "BtnPlaySolo"
"xpos" "88" [!$GAMECONSOLE && $WIN32WIDE]
"xpos" "63" [!$GAMECONSOLE && !$WIN32WIDE]
"ypos" "310" [$GAMECONSOLE]
"ypos" "288" [!$GAMECONSOLE]
"wide" "280"
"tall" "20"
"autoResize" "1"
"pinCorner" "0"
"visible" "1"
"enabled" "1"
"tabPosition" "0"
"navDown" "BtnOptions"
"labelText" "Play!"
"style" "MainMenuButton"
"command" "map (the map name)"
"ActivationType" "1"
"FocusDisabledBorderSize" "1"
i dont know what brush is but i herd it alot
Posts: 1
Joined: Aug 16, 2018

Registered users don't see ads! Register now!

Re: Single player hub

Postby Berna2078 » Tue May 21, 2019 1:34 pm

Why don't you use a prop_button that triggers a math_count or the point_servercommand
I was told I would get $60 if I posted on the forum
Posts: 3
Joined: May 21, 2019

Re: Single player hub

Postby ChickenMobile » Sat May 25, 2019 11:30 pm

I know you're tying to help here, but this is a necropost therefore locking. If this is still a problem for OP, they should make another post.
                             TWP Releases | My Workshop
User avatar
Senior Stalemate Associate
Posts: 2,471
Joined: May 9, 2011
Location: Canberra, Australia

Return to Hammer and Modding

Who is online

Users browsing this forum: No registered users and 7 guests