Page 1 of 1

applying scripts using MOHradiant

Posted: Fri Oct 24, 2003 10:41 am
by stecol
I cant seem to get scripts to work in MOHradiant. Ive built a map with static objects in it and it works fine but when I try to add a script it doesnt work. For example, I added a door and it just appears in the game as a big block stuck to the wall. Am I missing something here???

Posted: Fri Oct 24, 2003 1:16 pm
by bdbodger
what do you mean ? you made a func_rotateingdoor or func_door in mohradiant and after you compile it the door doesn't work ?

Scripts

Posted: Fri Oct 24, 2003 8:47 pm
by tltrude
You don't add the script with the map editor. It is a seperate text file (.scr extention) that goes in the same folder as the map (.bsp extention). If you unzip pak5.pk3, or any mod pk3, you will see the script files.

Posted: Thu Oct 30, 2003 10:08 pm
by stecol
OK, I realise that this scripting lark isnt as easy as I first thought. All Im basically trying to do is put a door into my map rather than just create a clear opening in the wall. Does anyone have a script that I could use and experiment with?

Thanks.

Posted: Thu Oct 30, 2003 10:16 pm
by Guitarfan
doors don't use a script, just aply func_rotatingdoor to you brush you use as a door
tut: /tutorials/doors.php

Posted: Thu Oct 30, 2003 11:11 pm
by smartaiguy
You can add scripts in radiant but I would NOT recommend it. Its very buggy.

door2

Posted: Thu Oct 30, 2003 11:18 pm
by tltrude
Here is a tutorial map that has 35 different doors in it. The zip includes the .map file, a playable pk3, and a text version of the script.

http://pages.sbcglobal.net/tltrude/Temp/door2.zip

Image

Posted: Thu Oct 30, 2003 11:46 pm
by smartaiguy
Whoa I didn't know you had that many doors in there :shock:

Re: door2

Posted: Thu Oct 30, 2003 11:52 pm
by Guitarfan
tltrude wrote:Here is a tutorial map that has 35 different doors in it. The zip includes the .map file, a playable pk3, and a text version of the script.

http://pages.sbcglobal.net/tltrude/Temp/door2.zip

Image
you should make that map a sticky :P

Door2

Posted: Fri Oct 31, 2003 12:15 am
by tltrude
It is a nice little map. It compiles very fast, even with -v, -v, final set. Actually, I think there are 36 doors now because I added one to the back of the garage that opens with a keypad (remote trigger). I am counting the drawers under the TV and the kitchen cabinets as doors too. And, both sides of double doors. The manhole elevator is a door as well.

I am proud of the front door, now that it has shootable glass. There is a fanfold door in the tunnel too--I count it as one door even though it has 4 sections that rotate.

Posted: Fri Oct 31, 2003 12:18 am
by Guitarfan
downloaded it too :), sounds like I could learn from it if I need some things

Posted: Fri Oct 31, 2003 12:54 am
by smartaiguy
Yes, I think it should be a stick!!

Hmm... my house might need some drawers and use that keypad for switches

Posted: Fri Oct 31, 2003 6:31 am
by silversound
No don't make it a sticky or two things will happen.

1 Nobody who is new to mapping would post.
2 Tom will have to go into hiding due to the sheer number of help requests.

.........no really it should be a sticky or be adapted into the tutorials section. It opened my eyes (no pun intended) to the possibilities.

Posted: Fri Oct 31, 2003 1:19 pm
by smartaiguy
maybe add it to the doors tut on .map