Drawbridge and Barred Gate


(Ghetalion) #1

I have no idea how to script or how to do anything that involves func. I made a moving block in Jedi Knight II once, but that’s about the extent of it, so I am definitly a noob asking for too much.

I need a switch that moves a brush drawbridge style, up or down.

I also need a switch that moves a gate up or down.

1.) Is this possible?
2.) Does a human with the patience have the ability to explain how I can do it?
3.) Does a well-connected person possess a link leading to the resources written by a person with patience capable of teaching me?

Either one of these will help. :smiley:


(garv284) #2

while in radiant go into the help menu and go down to the Wolfenstein:Enemy Territory option and to the side should pop out ET Level Designer’s Reference, click that (Help>Wolfenstein Enemy Territory> ET Level Designer’s Reference). once in the reference html file click the Scripting link which is located under Construction System. that could help you learn how to do some scripting. it won’t exactly tell you how to do what you want to do but it will tach you the basics and could help with futere scripts that you want to make.


(Erik-Ftn) #3

I’ll try explaining. I was thinking about this myself not to long ago.

  1. Easy, not perfect solution

1.1 Build a rotating door. (dont know how? http://etmapping.andityler.com/rotatingdoor.php)
1.2 Rotate both parts so the origin brush is downwards. (Dont know how: http://www.qeradiant.com/manual/Q3Rad_Manual/ch05/pg5_1.htm#tools2)
1.3 Enable the x or the y axis flag in the entity-window, depending on which way your door is facing.
1.4 Set up a func_invisible_user as the switch and link it to the door (don’t know how? see relevant headers here (http://www.qeradiant.com/manual/Q3Rad_Manual/ch08/pg8_1.htm#tools5)
1.5 Compile your map

Now you can operate the door with the button, though you can operate the door by itself as well. Sometimes such a door might open the wrong way also which might not be a pretty sight. In my experience such doors opens away from the using player though if you use the door itself and then block it from opening, it might swap, opening the other way in the future. :frowning: (Hmm - not tested idea: maybe make the door a crusher to always avoid this effect.) Also, I did not get a rotating door to always open towards me when using a func_invis_user on it. Do you sort this out, let me know.

  1. Better, though far more complicated way.

2.1 Go to (http://etmapping.andityler.com/rotatingdoor.php) and learn about rotating doors and origins if you don’t know that yet.
2.2 Go to (http://www.wolfensteinx.com/surface/tutorials/script_mover.html) and read about script_mover, though don’t go to much into details, it’s a tut for rtcw and a bit old.
2.3 Go to (http://www.nibsworld.com/rtcw/tutorial_basic_script_mover.shtml)
and go through the entire tutorial.
2.4 Read about faceangles where Garv284 told you to look (post before this).

Now you should be able to write your own scripting to do what you want nicely.

cheers

Erik


(Ghetalion) #4

I’m having a difficult time with the 2nd approach… since it’s asking me to make a func_button out of something… and lookie lookie! There is no func_button… :banghead:


(Erik-Ftn) #5

Thats an old rtcw entity, use func_invisible_user in ET.

Also, search for func_button in the “Editing Wolfenstein: Enemy Territory” forum only. A search will many times answer your question, answer your next question before you get around to ask it and save you a lot of time. I’ve learned this the hard way :).