Frictional Games Forum (read-only)
Door Message Problem - 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 (https://www.frictionalgames.com/forum/forum-35.html)
+--- Thread: Door Message Problem (/thread-5157.html)



Door Message Problem - house - 10-22-2010

I made a locked door in my level. I make it say something when its locked. When its unlocked, and you hold the door down to open and close the door, it still says the message! I really don't want it to say it anymore when the door is unlocked. Can anyone fix this? This is the code in the script to make the door say the message when locked:

Code:
void InteractClosedDoor(string &in asEntity)
{
    AddTimer("doorm", 0.5f, "TimerDoorMessage");
}
void TimerDoorMessage(string &in asTimer)
{
    SetMessage("Messages", "Locked_Door_9", 0);
}

Please help. Sad


RE: Door Message Problem - Pandemoneus - 10-22-2010

Code:
void InteractClosedDoor(string &in asEntity)
{
    if(GetSwingDoorLocked("NAME OF YOUR DOOR") == true)
    AddTimer("doorm", 0.5f, "TimerDoorMessage");
}
void TimerDoorMessage(string &in asTimer)
{
    SetMessage("Messages", "Locked_Door_9", 0);
}



RE: Door Message Problem - house - 10-23-2010

(10-22-2010, 09:39 PM)Pandemoneus Wrote:
Code:
void InteractClosedDoor(string &in asEntity)
{
    if(GetSwingDoorLocked("NAME OF YOUR DOOR") == true)
    AddTimer("doorm", 0.5f, "TimerDoorMessage");
}
void TimerDoorMessage(string &in asTimer)
{
    SetMessage("Messages", "Locked_Door_9", 0);
}

Thanks! This works!