Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Show message when interacting with a door?
srobb Offline
Junior Member

Posts: 24
Threads: 4
Joined: Sep 2012
Reputation: 0
#1
Show message when interacting with a door?

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.
(This post was last modified: 09-29-2012, 03:36 PM by srobb.)
09-29-2012, 03:28 PM
Find
Statyk Offline
Schrödinger's Mod

Posts: 4,390
Threads: 72
Joined: Sep 2011
Reputation: 241
#2
RE: Show message when interacting with a door?

Is there a problem with it? If so, what is it doing?
(This post was last modified: 09-29-2012, 03:48 PM by Statyk.)
09-29-2012, 03:47 PM
Find
srobb Offline
Junior Member

Posts: 24
Threads: 4
Joined: Sep 2012
Reputation: 0
#3
RE: Show message when interacting with a door?

It doesn't show any message at all.
09-29-2012, 03:50 PM
Find
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#4
RE: Show message when interacting with a door?

You category name is wrong.

It should be "Message" instead of "Messages"

Trying is the first step to success.
09-29-2012, 03:55 PM
Find
srobb Offline
Junior Member

Posts: 24
Threads: 4
Joined: Sep 2012
Reputation: 0
#5
RE: Show message when interacting with a door?

I changed it to "Message". Still won't work.
09-29-2012, 03:57 PM
Find
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#6
RE: Show message when interacting with a door?

Show us the whole lang file

Trying is the first step to success.
09-29-2012, 05:49 PM
Find
srobb Offline
Junior Member

Posts: 24
Threads: 4
Joined: Sep 2012
Reputation: 0
#7
RE: Show message when interacting with a door?

<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>
09-29-2012, 06:56 PM
Find
Robby Offline
Posting Freak

Posts: 2,549
Threads: 38
Joined: Jun 2009
Reputation: 47
#8
RE: Show message when interacting with a door?

You forgot the </LANGUAGE> at the end of the file.

Infrequently active. Don't expect an immediate response. Best to contact me at a different locale. If I create a thread, expect me to be quite active.
09-29-2012, 06:59 PM
Website Find
Steve Offline
Member

Posts: 178
Threads: 17
Joined: Jun 2012
Reputation: 7
#9
RE: Show message when interacting with a door?

if you haven't forgotten to put it there you still need:
</LANGUAGE>
at the end of the .LANG

CURRENTLY WORKING ON:
Final Light = 40%
Need of voice actors.
09-29-2012, 07:00 PM
Find
srobb Offline
Junior Member

Posts: 24
Threads: 4
Joined: Sep 2012
Reputation: 0
#10
RE: Show message when interacting with a door?

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>
09-29-2012, 07:04 PM
Find




Users browsing this thread: 2 Guest(s)