Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
GloryToRussia

How do i make a A Switch that needs a key or a custom item?

Recommended Posts

i'm not preatty sure, but it depends on the format you're doing your level and what you what the switch to do.

Share this post


Link to post

In UDMF in GZDoomBuilder, when you open linedef Properties, there is a "Lock number" property which lets you set a lock type, which will make the linedef impossible to be activated unless the player has the respective key(s) - so, give the linedef any "Action" you want (with an appropriate "Activation" type in the box below) and set its lock type to something. There are predefined lock types for keys from the original game(s). To create custom lock types, see LOCKDEFS.

Share this post


Link to post

Then What does mean this? on the script editor?
Case 2: // open doors
Door_Open(5, 16);
Break;
}
}

What do i do with the 5 and 16

EDIT:I dosent show me Item number what do i do with it?

Share this post


Link to post
GloryToRussia said:

Then What does mean this? on the script editor?
Case 2: // open doors
Door_Open(5, 16);
Break;
}
}

It means:

comment line said:

// open doors

GloryToRussia said:

What do i do with the 5 and 16

??
Nothing?
http://zdoom.org/wiki/Door_Open

GloryToRussia said:

EDIT:I dosent show me Item number what do i do with it?

I don't understand what this last sentence means.
Item number is the number that tell the puzzle what item to use.
http://zdoom.org/wiki/UsePuzzleItem
In power cube decorate this is defined as "1" (see line 28 in the decorate).

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×