Page 1 of 1

Top hinging window

Posted: Fri Jul 25, 2003 10:06 am
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.

Posted: Fri Jul 25, 2003 10:11 am
by SlasherZ
try angle -1? -2?

Posted: Fri Jul 25, 2003 10:45 am
by Bilko
nope, that didnt do it, next idea! lol

Bilko.

Posted: Fri Jul 25, 2003 10:55 am
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.

Posted: Fri Jul 25, 2003 1:03 pm
by nuggets
you'll need self waitmove aswell, before both rotate commands

and make the window
key: targetname
value: window

Posted: Fri Jul 25, 2003 1:54 pm
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

Posted: Fri Jul 25, 2003 5:18 pm
by Bilko
Ok, cheers, I'll give it a try.

Bilko.

Posted: Sat Jul 26, 2003 10:58 am
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.

Posted: Sat Jul 26, 2003 1:37 pm
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!

Posted: Sat Jul 26, 2003 3:20 pm
by Bilko
Ok, thanks for your help guys.

Bilko.