Frictional Games Forum (read-only)

Full Version: Show message when interacting with a door?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
I want a message to show up on the screen when the player interacts with this door.

.hps file:

SetEntityPlayerInteractCallback("wifesroom", "showdoortext1", true);



void showdoortext1(string &in asEntity)

{
if(GetSwingDoorLocked(asEntity)== true)
{
SetMessage("Message", "doortext1", 0);
}
}

.lang file:


</CATEGORY>

<CATEGORY Name="Messages">
<Entry Name="doortext1">Hmm... My wife's room... I wonder why it's locked.</Entry>
</CATEGORY>

Thanks in advance.
Is there a problem with it? If so, what is it doing?
It doesn't show any message at all.
You category name is wrong.

It should be "Message" instead of "Messages"
I changed it to "Message". Still won't work.
Show us the whole lang file
<LANGUAGE>
<CATEGORY Name="CustomStoryMain">
<Entry Name="Description"> descriptionhere
</Entry>
</CATEGORY>

<CATEGORY Name="Levels">

<Entry Name="level_hub_1">...</Entry>





</CATEGORY>

<CATEGORY Name="Message">
<Entry Name="doortext1">Hmm... My wife's room... I wonder why it's locked.</Entry>
</CATEGORY>
You forgot the </LANGUAGE> at the end of the file.
if you haven't forgotten to put it there you still need:
</LANGUAGE>
at the end of the .LANG
It still won't work.


</CATEGORY>

<CATEGORY Name="Message">
<Entry Name="doortext1">Hmm... My wife's room... I wonder why it's locked.</Entry>
</CATEGORY>

</LANGUAGE>
Pages: 1 2 3