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
Vertical door
User01 Offline
Member

Posts: 97
Threads: 30
Joined: Feb 2013
Reputation: 0
#1
Vertical door

I have absolutely no idea how to use vertical doors in Amnesia. I guess the safety_normal doors could be useful for this.
I want to do that if the player goes trough door frame, the door should fall down.
Help.
07-29-2013, 12:50 PM
Find
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#2
RE: Vertical door

Vertical doors are normally move objects, which you would use SetMoveObjectState or SetMoveObjectStateExt on.

Tutorials: From Noob to Pro
07-30-2013, 01:18 AM
Website Find
Artyom Offline
Senior Member

Posts: 370
Threads: 27
Joined: Jul 2012
Reputation: 11
#3
RE: Vertical door

Easily done with basic coding. My best tip is to make a level and just experiment with basic coding. That's what I do, and when there's something I don't understand I just go to the wiki.

- Inactive account -
07-30-2013, 01:33 AM
Find
User01 Offline
Member

Posts: 97
Threads: 30
Joined: Feb 2013
Reputation: 0
#4
RE: Vertical door

(07-30-2013, 01:18 AM)Your Computer Wrote: Vertical doors are normally move objects, which you would use SetMoveObjectState or SetMoveObjectStateExt on.

I tried it but the door just goes down trough the ground. It ignores it. I need help with the script.
(This post was last modified: 07-30-2013, 07:04 AM by User01.)
07-30-2013, 07:03 AM
Find
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#5
RE: Vertical door

(07-30-2013, 07:03 AM)User01 Wrote: I tried it but the door just goes down trough the ground. It ignores it. I need help with the script.

Then put the door higher in the level editor.

Tutorials: From Noob to Pro
07-30-2013, 09:22 AM
Website Find
User01 Offline
Member

Posts: 97
Threads: 30
Joined: Feb 2013
Reputation: 0
#6
RE: Vertical door

(07-30-2013, 09:22 AM)Your Computer Wrote:
(07-30-2013, 07:03 AM)User01 Wrote: I tried it but the door just goes down trough the ground. It ignores it. I need help with the script.

Then put the door higher in the level editor.
I see. First of all, it's way to slow and also it loops (goes up again). What do?
(This post was last modified: 07-30-2013, 09:37 AM by User01.)
07-30-2013, 09:36 AM
Find
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#7
RE: Vertical door

You can manually adjust its speed with SetMoveObjectStateExt. As for why it goes up again, you probably have a bug in your code, or something, that causes it to open after closing.

Tutorials: From Noob to Pro
07-30-2013, 12:07 PM
Website Find




Users browsing this thread: 3 Guest(s)