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


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Door Message Problem
house Offline
Member

Posts: 195
Threads: 11
Joined: Oct 2010
Reputation: 1
#1
Question  Door Message Problem

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:

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

Please help. Sad
10-22-2010, 09:19 PM
Find
Pandemoneus Offline
Senior Member

Posts: 328
Threads: 2
Joined: Sep 2010
Reputation: 0
#2
RE: Door Message Problem

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);
}

10-22-2010, 09:39 PM
Find
house Offline
Member

Posts: 195
Threads: 11
Joined: Oct 2010
Reputation: 1
#3
RE: Door Message Problem

(10-22-2010, 09:39 PM)Pandemoneus Wrote:
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!
10-23-2010, 12:34 AM
Find




Users browsing this thread: 1 Guest(s)