Co-op exception?

Ask about mapping, UDMF, using DoomBuilder/editor of choice, etc, here!

Moderator: GZDoom Developers

Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.

Co-op exception?

Postby puffleboi » Sat Oct 03, 2020 12:55 am

Hi ya'll!

How do you make a door work in singleplayer but not in co-op?

(Does it require scripting? If so, I apologize for putting it on the wrong subforum..)

You do not have the required permissions to view the files attached to this post.
User avatar
Go look somewhere else or I'm gonna blast you with my Double Barrel Shotgun
Joined: 15 Sep 2020
Location: Basement. Wait a minute, I don't have a basement. Uh oh.
Operating System: Windows 10/8.1/8/201x 64-bit
Graphics Processor: Intel (Modern GZDoom)

Re: Co-op exception?

Postby Graf Zahl » Sat Oct 03, 2020 1:16 am

Yes, for that you need a small ACS script where you check the game mode.

Code: Select allExpand view
script 5 (void) 
    if(gametype() == GAME_SINGLE_PLAYER)
        Door_Open(const:90, 16);
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Joined: 19 Jul 2003
Location: Germany

Return to Mapping

Who is online

Users browsing this forum: No registered users and 0 guests