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 Make a Swing Door which has already been auto-closed swing open?
Kreekakon Offline
Pick a god and pray!

Posts: 3,063
Threads: 70
Joined: Mar 2012
Reputation: 124
#3
RE: Make a Swing Door which has already been auto-closed swing open?

(06-28-2012, 06:28 PM)FastHunteR Wrote: If you disable autoclose right before slowly opening it, it should still work.
But I've already tried that as seen in my script. I disabled auto-close prior to applying the force.
Quote:Or, if you mean that the door might be open before, close it before the player has a sight of it.
No, the door will start off closed. It's just that after the player interacts with it, my scripts can only play their part right if the player does not close the door behind them.

Here's a breakdown of the scene I'm trying to do:
Player enters a room
After entering player can choose to leave the door he just entered through open, or close it behind him.
Player picks up item
Player turns around to leave
Door slowly opens

As I've said, the second step is key, and I can't seem to stop the door from auto-closing if the player has interacted with it.

EDIT: Ah, seem to have solved it. I added a timer which repeats "SetSwingDoorDisableAutoClose("crowbardoor", true);" every 0.01 seconds, which is more than enough to stop the door from ever closing.
(This post was last modified: 06-28-2012, 06:55 PM by Kreekakon.)
06-28-2012, 06:34 PM
Find


Messages In This Thread
RE: Make a Swing Door which has already been auto-closed swing open? - by Kreekakon - 06-28-2012, 06:34 PM



Users browsing this thread: 1 Guest(s)