Please Help Support E-Mods.net by Donating

e-mods.net

  • 2017-11-24, 06:52:41
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  

News:

Looking for VTMR Modding Tutorials? Check out the Open Nod Development section of e-mods.net.

Author Topic: Make a Switch Door  (Read 2088 times)

Nagaraja

  • Member
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 49
Make a Switch Door
« on: 2007-07-24, 07:58:12 »

Question

I want to know,plz,how to make a door that open whit a switch(in embrace).Plz,explaine me how to make this work,so I will be able to make betters map :).I already thank you!!!

Answer

First off, This is the long way, but in the end, you will know it inside and out :)
Make a brush (the size of the door that you want), and right click on your 2d menu, make the "door" a template_brush.

Apply the texture you want to the door.

Press N and find Pick Script in the overrides. Find SwitchDoor.class

Apply script. And in the things tree, find tracker_thing_nohilite (CLICK IT ONLY ONCE) Apply template.

The tracker_thing_nohilite will make the door not highlight when the cursor is over it. If you want it to highlight, just apply tracker_thing.

Now, with the door still selected, press SHFT+K, it will make a pathpoint(or hinge) for the door. Press N, and set the pathpoint's YAW to 90.

The door is done...halfway through.

Make a brush you want for the switch, and make it a template_brush.

Find a switch you want in the Things tree(Press N), and apply template. (It doesn't matter which type, in this tutorial).

Now, deselect the switch, and select the door. Press SHFT+C to bring up the Codex linker. Click the Switch Value box (make it turn blue).

Here's the tricky part...stay with me.

In the 3d window (with the codex menu still up, and value box blue)

SHFT+LEFT CLICK the switch. You should see Codex# appear in the blue box. Press apply in the Codex linker. When you select the door, a purple line will shoot out to the switch.

You've made a secret door, with a switch.

-dyllantina 
Logged

Barnabas

  • Member
  • *
  • Karma: 3
  • Offline Offline
  • Posts: 125
Re: Make a Switch Door
« Reply #1 on: 2010-03-29, 12:01:40 »

IŽd like to build something like an air lock. For this IŽd like to link two switch doors to one switch. When I use the switch, IŽd like that one door ( that was always open ) closes and after a while ( few seconds ) the other door ( that was closed ) opens. Means IŽd like to create a switch door that opens with a latency period of some seconds after using the switch. Is that possible? If yes, how?
Logged
Sorry for my bad english ...

Javokis

  • Horses Dick
  • Member
  • *****
  • Karma: 21
  • Offline Offline
  • Posts: 2373
    • E-Mods.net
Re: Make a Switch Door
« Reply #2 on: 2010-03-29, 12:25:05 »

Yes... you'll need Java of course.
Logged
"There's nothing wrong with horses dicks, there's nothing wrong with sucking horses dicks." -Signo

Barnabas

  • Member
  • *
  • Karma: 3
  • Offline Offline
  • Posts: 125
Re: Make a Switch Door
« Reply #3 on: 2011-08-03, 07:11:48 »

Is it possible to use/convert a prop as/to a door?
Logged
Sorry for my bad english ...

Javokis

  • Horses Dick
  • Member
  • *****
  • Karma: 21
  • Offline Offline
  • Posts: 2373
    • E-Mods.net
Re: Make a Switch Door
« Reply #4 on: 2011-09-27, 09:35:20 »

Yes. As to how in a nut shell:

In not editor for the prop object
-Remove NOHIGHLIGHT from THINGFLAG
-Change/Add MOVETYPE tag to TRACK

Spawn object in embrace and add frames and door script. Should be all that's needed.
Logged
"There's nothing wrong with horses dicks, there's nothing wrong with sucking horses dicks." -Signo
 

Page created in 0.06 seconds with 19 queries.