Frictional Games Forum (read-only)
How to make Disappear messages when door is unlocked with key? - 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: How to make Disappear messages when door is unlocked with key? (/thread-9223.html)



How to make Disappear messages when door is unlocked with key? - HumiliatioN - 07-18-2011

Yeah so basically I can Set message on the door and say it "It's locked"

So my problem when I use key to the door and swing the door to open it... It still says "It's locked" how to remove that message after I unlock that door and interact.

How?

Thanks.


RE: How to make Disappear messages when door is unlocked with key? - MrCookieh - 07-18-2011

Code:
if(GetSwingDoorLocked("door")==true){
your textmessage
}

the if function checks, if the door is locked, and will only trigger when it is true.


RE: How to make Disappear messages when door is unlocked with key? - HumiliatioN - 07-18-2011

(07-18-2011, 05:16 PM)MrCookieh Wrote:
Code:
if(GetSwingDoorLocked("door")==true){
your textmessage
}

the if function checks, if the door is locked, and will only trigger when it is true.

Thanks! It works! Savior Smile