Frictional Games Forum (read-only)
Vertical door starting 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: Vertical door starting open? (/thread-18821.html)



Vertical door starting open? - Damascus - 10-17-2012

As the topic says, is there a way for a vertical door to begin the map open? Til now I've just been opening it at the very start of the level with SetMoveObjectState, but now it's a problem as I have one right in front of the player at the start of the map that I want to already be open. With my method, it will start close and then open in front of the player when the map starts.


RE: Vertical door starting open? - Adny - 10-17-2012

If you don't need it to be functional, you can just have a static door moved to the upper position. On second thought, it could be function if switch it out with a normal vert door while the player can't see it (i.e. after the player passes through the doorway).

Alternatively you could do a fade in long enough to cover the action of the door moving up in the very beginning.


RE: Vertical door starting open? - The chaser - 10-17-2012

You could move it up in the level editor and ticking static physics.


RE: Vertical door starting open? - Your Computer - 10-17-2012

You should be able to set what state it should be on by default in the model editor.


RE: Vertical door starting open? - Streetboat - 10-17-2012

void SetMoveObjectStateExt(string& asName, float afState, float afAcc, float afMaxSpeed, float afSlowdownDist, bool abResetSpeed);

Same thing as SetMoveObject, but you can set the speed with which it moves, so you can set the speed and acceleration ludicrously high so it opens faster than the player can see it.


RE: Vertical door starting open? - GoranGaming - 10-17-2012

Go to the Level Editor. Click the door you want to edit. Then you click on the "entities" tab. Go to the "OpenAmount" thing and insert a number between 0-1. 1 is open and 0 is closed.
[Image: 8OVLE.png]


RE: Vertical door starting open? - FlawlessHappiness - 10-17-2012

(10-17-2012, 07:36 PM)GoranGaming Wrote: Go to the Level Editor. Click the door you want to edit. Then you click on the "entities" tab. Go to the "OpenAmount" thing and insert a number between 0-1. 1 is open and 0 is closed.
You cannot do that with the safety_normal_vert