Create an account

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

I really don't know how to make doors. I want some explanation on doors.
1. How can i make 2 doors that open in different directions?
2. Which direction a door opens with a specific angle?
3. Why linking doors makes them move in the same direction?
[Image: 10253.png]

You should make doors with a trigger and a func_door. For every door you should be able to set the way it opens, but I'm not sure how.

It should all be described in the entity editor thing. There's func_door_rotating also, for rotating doors (instead of sliding).

Entity definition file used by radiant Wrote:Normal sliding door entity. By default, the door will activate when player walks close to it or when damage is inflicted to it.
If DOOR_DONT_LINK is not set, the door will be linked with all doors it touches. Note however that for linked doors to work properly, it is necessary that ALL linked doors have SOME volume of common area (that is, there must be a point that is part of ALL doors).

Doors that aren't linked to a trigger automatically spawn their own, too.

Read the description of the entities! Wink

Quote:"angle" determines the opening direction

(07-02-2012, 01:15 PM)Maddin Wrote: Read the description of the entities! Wink

Quote:"angle" determines the opening direction

But which angle moves the door in which direction?
[Image: 10253.png]

The easiest way to find out is to just make your door, compile the map and test it.

Ok, thought you know the basics of mathematics. Tongue It goes from 0° up to 360° around the z axis, -1 is for up and -2 for down. An example:

In this case the door will move towards the y-axis, away from the xz-plane.

Well, it's not completely obvious. There are a few different ways of specifying angles.

0 degrees is right on the top down view

90 is up



... i think ...

So. i created 2 doors which look like that. The left door has z-axis 0 degrees, and the right one has z-axis 180 degrees. Note that they are made of multiple brushes which share the same func_door property. They're also marked with DOOR_DONT_LINK. Compiled the map. If i go near those doors, none of them open. Why?

Attached Files Thumbnail(s)
[Image: 10253.png]

First of all don´t mess up the brushes with clipping like you did it there! Such structures aren´t good.

You thought it nearly the right way, only the angle values are the problem. The northern door needs a value of 90 and the southern a value of 270. Like this one:
[Image: scaled.php?server=62&filename=bildschirm...g&res=crop]
Also, the trigger is targeted at the two doors which have the same targetname.

Oh, and forget about this DOOR_DONT_LINK thingy, it´s not necessary.

Forum Jump:

Users browsing this thread:
1 Guest(s)

Forum software by © MyBB original theme © iAndrew 2016, remixed by -z-