![]() |
Show message when you try to open a locked door? - 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: Show message when you try to open a locked door? (/thread-10005.html) |
Show message when you try to open a locked door? - cheztheguy - 08-27-2011 Hi, I'm working on my map again and I'm trying to make a message show on the screen when the player tries to open a door and it is locked. Here's my whole script... Spoiler below!
Here is my whole extra_english.lang file... Spoiler below!
Is this correct? Because I try to open the door in the game and nothing shows up on screen. In the Level Editor, when I click on the door to show the message when it's locked, here are the fields in the Entity tab... (checked)CastShadows (unchecked)StaticPhysics (unchecked)IsAffectedByDecal CallbackFunc (blank) ConnectedProps (blank) ConnectionStateChangeCallback (blank) (checked)FullGameSave PlayerLookAtCallback (blank) (unchecked)PlayerLookAtCallbackAutoRemo... PlayerInteractCallback "InteractClosedDoor" (unchecked)PlayerInteractCallbackAutoRemo... (checked)Locked OpenAmount - 0 (unchecked)DisableBreakable Thanks! RE: Show message when you try to open a locked door? - Kurton - 08-27-2011 I think, try changing SetMessage("LockedDoor-Brute", "BruteDoorLocked", 7.0f); to SetMessage("Message", "BruteDoorLocked", 7.0f); Seeing as "Message" is the category BruteDoorLocked is in, not LockedDoor-Brute RE: Show message when you try to open a locked door? - cheztheguy - 08-27-2011 (08-27-2011, 09:06 AM)Kurton Wrote: I think, try changing Ohhh. Okay. Thanks! Gah, sometimes I just don't know what's wrong. RE: Show message when you try to open a locked door? - Elven - 08-27-2011 That happens to all scripters, even to experienced ones ![]() RE: Show message when you try to open a locked door? - MegaScience - 08-28-2011 Also, why are you putting the message on a timer exactly? Wouldn't it be easier to put it right in the Interact command? ![]() RE: Show message when you try to open a locked door? - JetlinerX - 08-28-2011 Correction: The category is "Messages." A small "S" can make it still not show up ![]() If your still having trouble, do that. Also, Why do you have a timer? Just use an interact command. |