Homicide13 
 
 
		
			Senior Member 
			
			
			
 
			
	Posts: 323 
	Threads: 41 
	Joined: Nov 2010
	
 Reputation: 
14
		
	 | 
	
		
			
LevelDoor interaction text 
			 
			
				For some reason I am having trouble calling up text to appear on the screen when the player interacts with a level door.  It works fine when it is set to work with a non-level door, but for some reason level doors do not work. 
 
what I have: 
 
in the extra_lang file: 
 
<CATEGORY Name="Doors"> 
<Entry Name="FL">Firmly Locked</Entry> 
</CATEGORY> 
 
Script: 
 
void Locked(string &in asEntity) 
{ 
if(GetSwingDoorLocked(asEntity) == true) SetMessage("Doors","FL",0); 
} 
 
and of course the PlayerInteractCallBack field of the door object in the map is set to "Locked." 
 
This should work but I can't figure out why it isn't...
			 
			
			
 
			
		 |  
	 
 | 
	| 08-16-2011, 08:14 PM  | 
	
		
	 | 
	
		
		Tanshaydar 
 
 
		
			From Beyond 
			
			
			
 
			
	Posts: 3,085 
	Threads: 17 
	Joined: Mar 2009
	
 Reputation: 
67
		
	 | 
	
		
			
RE: LevelDoor interaction text 
			 
			
				Level Doors' locked text can be arranged on Level Editor.
			 
			
			
 
			
		 |  
	 
 | 
	| 08-16-2011, 08:22 PM  | 
	
		
	 | 
	
		
		Homicide13 
 
 
		
			Senior Member 
			
			
			
 
			
	Posts: 323 
	Threads: 41 
	Joined: Nov 2010
	
 Reputation: 
14
		
	 | 
	
		
			
RE: LevelDoor interaction text 
			 
			
				O.o why do I not know of this?  how would I go about that?
			 
			
			
 
			
		 |  
	 
 | 
	| 08-16-2011, 10:59 PM  | 
	
		
	 | 
	
		
		darkside 
 
 
		
			Junior Member 
			
			
			
 
			
	Posts: 20 
	Threads: 2 
	Joined: Aug 2011
	
 Reputation: 
0
		
	 | 
	
		
			
RE: LevelDoor interaction text 
			 
			
				click on the level door -> entity -> LockedTextCat/Entry.
			 
			
			
 
 Snowy background, anyone?  
Now, where was that grunt with the santa hat .... 
			
		 |  
	 
 | 
	| 08-20-2011, 11:05 AM  | 
	
		
	 | 
	
		
		JetlinerX 
 
 
		
			Senior Member 
			
			
			
 
			
	Posts: 599 
	Threads: 49 
	Joined: Jun 2011
	
 Reputation: 
19
		
	 | 
	
		
			
RE: LevelDoor interaction text 
			 
			
				How does that work?  You enter the entry where its found in the lang file, or you just enter the text you want there?  Also, is it just "TextEntry" because I cant find a "LockedTextEntry"
			 
			
			
 
			
		 |  
	 
 | 
	| 08-20-2011, 03:33 PM  | 
	
		
	 | 
	
		
		Tanshaydar 
 
 
		
			From Beyond 
			
			
			
 
			
	Posts: 3,085 
	Threads: 17 
	Joined: Mar 2009
	
 Reputation: 
67
		
	 | 
	
		
			
RE: LevelDoor interaction text 
			 
			
				No, they have to be defined in your lang file.
			 
			
			
 
			
		 |  
	 
 | 
	| 08-20-2011, 04:01 PM  | 
	
		
	 | 
	
		
		JetlinerX 
 
 
		
			Senior Member 
			
			
			
 
			
	Posts: 599 
	Threads: 49 
	Joined: Jun 2011
	
 Reputation: 
19
		
	 | 
	
		
			
RE: LevelDoor interaction text 
			 
			
				So "TextEntry" is the entry name they are under... Gotcha!  Thanks! 
 
PS:  To the "OP" sorry for kinda taking over your topic x)
			 
			
			
 
			
		 |  
	 
 | 
	| 08-20-2011, 04:06 PM  | 
	
		
	 |