Trigger activated doors

Started by unixfreak, May 21, 2013, 08:24:36 PM

Previous topic - Next topic


Start by adding a new mapmodel entity
/newent mapmodel

Press and hold "1" and scroll through until you find the door model you want. As of RE 1.4, there are 2 mapmodels which have door/opening animations. They are type: 8 and type: 9.

Next up, you want to add a new trigger entity
/newent trigger

While the trigger is selected, add the mapmodel to the selection
/entfind mapmodel 9

Press "L" whilst both entities are selected to link them.

These are several methods to open the doors, the first one being proximity (they open automatically as you cross the radius on the trigger entity). To get this working, set "action" to 1.

You might also want to set "type" to 1, so that it reads "link, proximity, off". This stops the door repeatedly opening/closing (spammy) while you are standing in the radius.

By setting "action" to 2, you can make the doors open by pressing "E" to interact with the trigger. Useful for having a computer console or a keypad which opens the door.

By changing the "state" parameter of the trigger, this makes it decide if the door defaults to being open or closed when the map is first loaded.

To make things more interesting, you can also link a sound to the same trigger, so that when the door is opened or closed, a sound effect is played.

To do this, add a new sound entity, and find the sound that you want to use
/newent sound

A good choice for doors is 'sounds/ambience/switch' (type: 25)

Select the sound entity, and also the trigger entity
/entfind trigger

Finally, press "L" to link the trigger to the sound entity, and you should get a setup similar to this:

You should now have a fully functioning door with sound fx,
Join the Red Eclipse discord!



Yes  :D
They work in all multiplayer modes.
Join the Red Eclipse discord!