09-29-2012, 03:28 PM
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.
.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.