Frictional Games Forum (read-only)
Pop up titles - 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: Pop up titles (/thread-24923.html)



Pop up titles - Hungerzz - 03-25-2014

I want to make a title saying ,,Locked,, when i click on locked doors.Anyone?


RE: Pop up titles - Mudbill - 03-25-2014

Go to the entity tab of the door (in the level editor) and type a function name in the PlayerInteractCallback box.

Jump over to your script and create the script for it. I'll name it InteractLocked in this example:
PHP Code:
void InteractLocked(string &in asEntity)
{
    if(
GetSwingDoorLocked(asEntity) == trueSetMessage("MessageCategory""MessageEntry"3);


This simple script will check if the door is locked, and if so, it will display a message for 3 seconds. The message itself is written in your .lang file. Just create a category and entry and input the names of those in the SetMessage function.

PS: Make sure the box for removing the callback is unchecked in the editor.


RE: Pop up titles - Hungerzz - 03-25-2014

Hey it's you,Mudbill hahaha.
I watch your videos Big Grin
Ty Tongue

Wait,what do i type in .lang file?


RE: Pop up titles - Traggey - 03-25-2014

This does not belong here, moved to development support.