| srobb   Junior Member
 
 Posts: 24
 Threads: 4
 Joined: Sep 2012
 Reputation: 
0
 | 
			| 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 |  | 
	
		| Statyk   Schrödinger's Mod
 
 Posts: 4,390
 Threads: 72
 Joined: Sep 2011
 Reputation: 
241
 | 
			| 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 |  | 
	
		| srobb   Junior Member
 
 Posts: 24
 Threads: 4
 Joined: Sep 2012
 Reputation: 
0
 | 
			| RE: Show message when interacting with a door? 
 
				It doesn't show any message at all.
			 |  | 
	| 09-29-2012, 03:50 PM |  | 
	
		| FlawlessHappiness   Posting Freak
 
 Posts: 3,980
 Threads: 145
 Joined: Mar 2012
 Reputation: 
171
 | 
			| 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 |  | 
	
		| srobb   Junior Member
 
 Posts: 24
 Threads: 4
 Joined: Sep 2012
 Reputation: 
0
 | 
			| RE: Show message when interacting with a door? 
 
				I changed it to "Message". Still won't work.
			 |  | 
	| 09-29-2012, 03:57 PM |  | 
	
		| FlawlessHappiness   Posting Freak
 
 Posts: 3,980
 Threads: 145
 Joined: Mar 2012
 Reputation: 
171
 | 
			| 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 |  | 
	
		| srobb   Junior Member
 
 Posts: 24
 Threads: 4
 Joined: Sep 2012
 Reputation: 
0
 | 
			| 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 |  | 
	
		| Robby   Posting Freak
 
 Posts: 2,549
 Threads: 38
 Joined: Jun 2009
 Reputation: 
47
 | 
			| 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 |  | 
	
		| Steve   Member
 
 Posts: 178
 Threads: 17
 Joined: Jun 2012
 Reputation: 
7
 | 
			| 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 |  | 
	
		| srobb   Junior Member
 
 Posts: 24
 Threads: 4
 Joined: Sep 2012
 Reputation: 
0
 | 
			| 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 |  |