Top hinging window

If you're looking for mapping help or you reckon you're a mapping guru, post your questions / solutions here

Moderator: Moderators

Post Reply
Bilko
Colour Sergeant
Posts: 91
Joined: Sat May 24, 2003 3:06 pm
Location: UK
Contact:

Top hinging window

Post by Bilko »

As far as I'm aware, it doesn't matter what it is that is a fun_rotatingdoor, cos I want to make a openable window. Problem being, I want it to hinge from the top. I've put the origin along the top edge but no luck, I swung as if it didn't have a origin. So I have I got to do something special? Also, what happens with the angle setting?
Thanks.

Bilko.
SlasherZ
Colonel
Posts: 433
Joined: Fri Jul 11, 2003 12:55 pm
Contact:

Post by SlasherZ »

try angle -1? -2?
Bilko
Colour Sergeant
Posts: 91
Joined: Sat May 24, 2003 3:06 pm
Location: UK
Contact:

Post by Bilko »

nope, that didnt do it, next idea! lol

Bilko.
crunch
Major
Posts: 348
Joined: Sat Jun 14, 2003 2:34 pm
Location: USA
Contact:

Post by crunch »

That type of window needs to be scripted.

Make it a script_object, and insert an origin at the top where you want the hinges. call it target/window.
Give your window trigger a setthread/window pair.

In your script:

window:
self nottriggerable
self rotatexup 90
wait xx // time in seconds you want the window to stay open
self rotatexdown 90 //if you want the window to close after "xx"
self triggerable
end

You could also do a "playsound" if you want.
This is as good as I can do, because I am by no means a scripter!

Kill Ya Later.
nuggets
General
Posts: 1006
Joined: Fri Feb 28, 2003 2:57 am
Location: U-england-K (england in the UK) :P
Contact:

Post by nuggets »

you'll need self waitmove aswell, before both rotate commands

and make the window
key: targetname
value: window
hope this helps, prob not cos it's all foreign 2 me :-/
User avatar
Zip
Major
Posts: 323
Joined: Wed Apr 09, 2003 6:47 pm
Location: Belgium

Post by Zip »

I tried to something like that ages ago, but for a Hatch. Here's the post link:

viewtopic.php?p=22544&highlight=#22544
Zip :?
Bilko
Colour Sergeant
Posts: 91
Joined: Sat May 24, 2003 3:06 pm
Location: UK
Contact:

Post by Bilko »

Ok, cheers, I'll give it a try.

Bilko.
Bilko
Colour Sergeant
Posts: 91
Joined: Sat May 24, 2003 3:06 pm
Location: UK
Contact:

Post by Bilko »

Ok, that worked, thx a lot. Anyone know how the numbers in scripting (ie wait 20) relates to real time, would wait 20 make it wait for 20 seconds?

Bilko.
crunch
Major
Posts: 348
Joined: Sat Jun 14, 2003 2:34 pm
Location: USA
Contact:

Post by crunch »

Yes, the wait times are in seconds

Kill Ya Later!

Oh--thanks nuggets. That was an oversight. I wrote target/window instead of targetname/window!
Image
Bilko
Colour Sergeant
Posts: 91
Joined: Sat May 24, 2003 3:06 pm
Location: UK
Contact:

Post by Bilko »

Ok, thanks for your help guys.

Bilko.
Post Reply