The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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


Messages In This Thread
Help scripting an opening and closing door. - by WoollySammoth - 02-15-2012, 04:25 PM



Users browsing this thread: 1 Guest(s)