Help:Creating locked doors

From Killing Floor Wiki
(Redirected from Mapping:Locked Doors)
Jump to: navigation, search

Requirements[edit]

  • KFDoorMover
  • KFUseTrigger

Make sure that these work together.

Now, we need to change some properties to make this door a lock and key combo.

Glitch Prevention[edit]

First lets set some failsafe properties so players cant glitch our locked door. Click on the door mover and open up your properties (f4). Expand the KFDoorMover block and lets set:

__ KFDoorMover
bDisallowWeld
True


Note: if you leave it FALSE, players can simply weld the door then blow it up with grenades and there goes your locked door.

Ok, in the same block set bKeyLocked to TRUE:

__ KFDoorMover
bDisallowWeld
bKeyLocked
True
True


Lock & Key[edit]

Now, open the Events block and we need to set the TAG. For this tutorial im using "KEYDOOR". you can name it whatever you like.

Next, select your KFUseTrigger and open the properties. The only thing we change in here is the Events and UseTrigger blocks. In the Events block, enter KEYDOOR in the EVENT area. Now open UseTrigger block and enter a message such as Find the key somewhere in this area. We're done with that actor.

KFUseTrigger[edit]

__ Events
Event
KEYDOOR


Now we need to place a key! Open your Actor browser and under Actor Classes go to:

Pickup
KFKeyPickup


Highlight it, right click somewhere in your map and select Add KFKeyPickup Here.

Finally, lets select our key pickup and open properties. Open the Events block and set:

KFKeyPickup[edit]

__ Events
Tag
KEYDOOR


That's it! go in game and test it! Try to open your door, it wont budge, go grab your key and now you can access the area!