Facebook Twitter YouTube Frictional Games | Forum | Newsletter | Dev Blog | Dev Wiki | Support | Shelf | Store

Privacy Policy


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Door Message Problem
Author Message
house Offline
Member

Posts: 195
Joined: Oct 2010
Reputation: 1
Post: #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 all posts by this user Quote this message in a reply
Pandemoneus Offline
Senior Member

Posts: 328
Joined: Sep 2010
Reputation: 0
Post: #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 all posts by this user Quote this message in a reply
house Offline
Member

Posts: 195
Joined: Oct 2010
Reputation: 1
Post: #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 all posts by this user Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)