Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script Help Help scripting an opening and closing door.
WoollySammoth Offline
Junior Member

Posts: 4
Threads: 3
Joined: Nov 2010
Reputation: 0
#1
Help scripting an opening and closing door.

Hallo!

Um...I would like to have the old haunted house trope of a door opening a little and then closing and then opening a little again and then closing (repeatedly) by its self until the player tries to interact with it, when it can just stop and I am having trouble figuring out how to do.

I can make doors open *or* close but not do both on an essentially infinite repeat.
I *think* i may need some sort of timer loop thing (or something) but i can't figure it out.
Anybody got any ideas?

It's just the opening and closing bit i need help with, i think i could probably figure out how to stop it on an interaction myself...once i can figure out how to start it.
Ta,
Yours
W.S.

02-15-2012, 04:25 PM
Find
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#2
RE: Help scripting an opening and closing door.

http://www.youtube.com/watch?v=VSZ_uWz-P...8&index=16

Tutorials: From Noob to Pro
02-15-2012, 04:43 PM
Website Find
WoollySammoth Offline
Junior Member

Posts: 4
Threads: 3
Joined: Nov 2010
Reputation: 0
#3
RE: Help scripting an opening and closing door.

(02-15-2012, 04:43 PM)Your Computer Wrote: http://www.youtube.com/watch?v=VSZ_uWz-P...8&index=16
Ooo, that's a better way of opening doors than i was using before (Big Grin) but not quite what i'm asking for.

See how that opens and then stops? I would like the door to open (say 1/4 of the way) and then close again. Then open, then close and then keep on doing it in a loop until it's interrupted.



02-15-2012, 05:46 PM
Find
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#4
RE: Help scripting an opening and closing door.

I provided the video not to teach you how to open a door, but for the fact that it provides example usage on timers.

Tutorials: From Noob to Pro
02-15-2012, 06:20 PM
Website Find
Statyk Offline
Schrödinger's Mod

Posts: 4,390
Threads: 72
Joined: Sep 2011
Reputation: 241
#5
RE: Help scripting an opening and closing door.

These threads bring back so many feelings of Deja Vu...
02-15-2012, 09:27 PM
Find
Linus Ågren Offline
Senior Member

Posts: 309
Threads: 58
Joined: Jan 2011
Reputation: 5
#6
RE: Help scripting an opening and closing door.

Take knowledge from this thread and tweak it so it fits what you want: http://www.frictionalgames.com/forum/thread-6624.html Wink

Creator of The Dark Treasure.
02-16-2012, 08:51 AM
Website Find




Users browsing this thread: 2 Guest(s)