Frictional Games Forum (read-only)

Full Version: Pop up titles
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I want to make a title saying ,,Locked,, when i click on locked doors.Anyone?
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.
Hey it's you,Mudbill hahaha.
I watch your videos Big Grin
Ty Tongue

Wait,what do i type in .lang file?
This does not belong here, moved to development support.