Frictional Games Forum (read-only)
Them Vert Doors - 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: Them Vert Doors (/thread-11940.html)



Them Vert Doors - hoppem - 12-19-2011

Yes them vert doors how do you use them and how do you make them work to where a crank opens it because i looked in the main story and i didnt see any script for it...is there supposed to be a script for it ??? Huh



RE: Them Vert Doors - Your Computer - 12-19-2011

Vertical doors are normally MoveObject entities. Therefore you can use either SetMoveObjectState or SetMoveObjectStateExt to make them go up or down.


RE: Them Vert Doors - hoppem - 12-20-2011

I dont understand, would it be like this

Code:
void OnStart
{
SetEntityConnectionStateChangeCallback("crank", CrankFunction);
}

void CrankFunction(string &in asEntity, int alState)
{
    if (alState == 1)
    {
        SetMoveObjectStateExt("vert", 0,5, 15, 0, false);
    }
}