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


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Keeping a safety_normal_vert door open
ApeCake Offline
Member

Posts: 116
Threads: 20
Joined: Jun 2012
Reputation: 4
#1
Keeping a safety_normal_vert door open

So I have this door (the one without handle and it has a skeleton head picture on it) and I want to keep it open after I did something. I used this script.

SetMoveObjectState("InteractSafetyDoor", 1);


However, when the door reaches the highest point (1) it starts moving down immediately and closes. How can I keep it open?
(This post was last modified: 07-02-2012, 06:35 PM by ApeCake.)
07-02-2012, 12:59 PM
Find
Cruzore Offline
Senior Member

Posts: 301
Threads: 2
Joined: Jun 2012
Reputation: 37
#2
RE: Keeping a safety_normal_vert door open

I would suggest trying it with one of these, most likely the first one first:
void SetPropObjectStuckState(string& asName, int alState);

void SetWheelStuckState(string& asName, int alState, bool abEffects);

void SetLeverStuckState(string& asName, int alState, bool abEffects);

Makes a prop\wheel\lever stuck in a certain state.
asName - internal name
alState - 0 = not stuck, 1 = at
max, -1 = at min
abEffects - use effects
Edit: What was I thinking..that won't work, and I don't think you can keep that door open.

Think, before you speak Google, before you post
(This post was last modified: 07-02-2012, 01:20 PM by Cruzore.)
07-02-2012, 01:04 PM
Find
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#3
RE: Keeping a safety_normal_vert door open

safety_normal_vert is designed to close on itself automatically. You can use wooden_slide_door instead or modify safety_normal_vert in the Model Editor and uncheck AutoMove in the user defined variables.

Read below.

Tutorials: From Noob to Pro
(This post was last modified: 07-02-2012, 01:31 PM by Your Computer.)
07-02-2012, 01:26 PM
Website Find
Cruzore Offline
Senior Member

Posts: 301
Threads: 2
Joined: Jun 2012
Reputation: 37
#4
RE: Keeping a safety_normal_vert door open

Actually, I just tested it out and there is a other prop of safety_normal_vert.
safety_normal_vert_noauto
This one doesn't close itself.

Think, before you speak Google, before you post
07-02-2012, 01:29 PM
Find
ApeCake Offline
Member

Posts: 116
Threads: 20
Joined: Jun 2012
Reputation: 4
#5
RE: Keeping a safety_normal_vert door open

Thanks guys. That was a huge fail on my part.
07-02-2012, 05:11 PM
Find




Users browsing this thread: 1 Guest(s)