Frictional Games Forum (read-only)
Keeping a safety_normal_vert door open - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: Keeping a safety_normal_vert door open (/thread-16680.html)



Keeping a safety_normal_vert door open - ApeCake - 07-02-2012

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?


RE: Keeping a safety_normal_vert door open - Cruzore - 07-02-2012

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.


RE: Keeping a safety_normal_vert door open - Your Computer - 07-02-2012

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.


RE: Keeping a safety_normal_vert door open - Cruzore - 07-02-2012

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.


RE: Keeping a safety_normal_vert door open - ApeCake - 07-02-2012

Thanks guys. That was a huge fail on my part.