Saren 
 
 
		
			Member 
			
			
			
 
			
	Posts: 196 
	Threads: 20 
	Joined: Jan 2012
	
 Reputation: 
1
		
	 | 
	
		
			
Key 
			 
			
				When I try to launch my story it says Masterbedroomkey was not declared... or something like that.... anything wrong here? 
// Run when entering map 
void OnEnter() 
{ 
AddUseItemCallback("", "Masterbedroomkey", "masterbedroomdoor", "UsedKeyOnDoor", true); 
} 
 
void UsedKeyOnDoor(string &in asItem, string &in asEntity) 
{ 
SetSwingDoorLocked("masterbedroomdoor", false, true); 
PlaySoundAtEntity("", "unlock_door", "masterbedroomdoor", 0, false); 
RemoveItem(Masterbedroomkey); 
} 
 
//////////////////////////// 
// Run when leaving map 
void OnLeave() 
{ 
 
} 
			 
			
			
			
				
(This post was last modified: 02-01-2012, 04:29 PM by Saren.)
 
				
			 
		 |  
	 
 | 
 
	| 02-01-2012, 04:28 PM  | 
	
		
	 | 
 
 
	
		
		SilentStriker 
 
 
		
			Posting Freak 
			
			
			
 
			
	Posts: 950 
	Threads: 26 
	Joined: Jul 2011
	
 Reputation: 
43
		
	 | 
	
		
			
RE: Key 
			 
			
				Check if you have named your key Masterbedroomkey   
			 
			
			
 
			
				
(This post was last modified: 02-01-2012, 04:33 PM by SilentStriker.)
 
				
			 
		 |  
	 
 | 
 
	| 02-01-2012, 04:32 PM  | 
	
		
	 | 
 
 
	
		
		Saren 
 
 
		
			Member 
			
			
			
 
			
	Posts: 196 
	Threads: 20 
	Joined: Jan 2012
	
 Reputation: 
1
		
	 | 
	
		
			
RE: Key 
			 
			
				 (02-01-2012, 04:32 PM)SilentStriker Wrote:  Check if you have named your key Masterbedroomkey   Indeed I have =)
			  
			
			
			
		 |  
	 
 | 
 
	| 02-01-2012, 04:38 PM  | 
	
		
	 | 
 
 
	
		
		SilentStriker 
 
 
		
			Posting Freak 
			
			
			
 
			
	Posts: 950 
	Threads: 26 
	Joined: Jul 2011
	
 Reputation: 
43
		
	 | 
	
		
			
RE: Key 
			 
			
				I don't know if it's needed but have you made a entry for the key in the .lang file?   
Nvm I found the problem, You forgot "" on RemoveItem   
			 
			
			
 
			
				
(This post was last modified: 02-01-2012, 04:41 PM by SilentStriker.)
 
				
			 
		 |  
	 
 | 
 
	| 02-01-2012, 04:40 PM  | 
	
		
	 | 
 
 
	
		
		Saren 
 
 
		
			Member 
			
			
			
 
			
	Posts: 196 
	Threads: 20 
	Joined: Jan 2012
	
 Reputation: 
1
		
	 | 
	
		
			
RE: Key 
			 
			
				Hmm.... that might be the problem.. lol, I don't think it's NESSERCARY either but... let's give it a go xD 
			 
			
			
			
		 |  
	 
 | 
 
	| 02-01-2012, 04:42 PM  | 
	
		
	 | 
 
 
	
		
		SilentStriker 
 
 
		
			Posting Freak 
			
			
			
 
			
	Posts: 950 
	Threads: 26 
	Joined: Jul 2011
	
 Reputation: 
43
		
	 | 
	
		
			
RE: Key 
			 
			
				 (02-01-2012, 04:42 PM)Saren Wrote:  Hmm.... that might be the problem.. lol, I don't think it's NESSERCARY either but... let's give it a go xD it should look like this RemoveItem("Masterbedroomkey");
			  
			
			
 
			
		 |  
	 
 | 
 
	| 02-01-2012, 04:45 PM  | 
	
		
	 | 
 
 
	
		
		flamez3 
 
 
		
			Posting Freak 
			
			
			
 
			
	Posts: 1,281 
	Threads: 48 
	Joined: Apr 2011
	
 Reputation: 
57
		
	 | 
	
		
			
RE: Key 
			 
			
				 (02-01-2012, 04:42 PM)Saren Wrote:  I don't think it's NESSERCARY It is necessary.
			  
			
			
 
			
		 |  
	 
 | 
 
	| 02-01-2012, 04:53 PM  | 
	
		
	 | 
 
 
	
		
		Saren 
 
 
		
			Member 
			
			
			
 
			
	Posts: 196 
	Threads: 20 
	Joined: Jan 2012
	
 Reputation: 
1
		
	 | 
	
		
			
RE: Key 
			 
			
				Still nothing =( 
 
 (02-01-2012, 04:53 PM)flamez3 Wrote:   (02-01-2012, 04:42 PM)Saren Wrote:  I don't think it's NESSERCARY It is necessary. Sooo, you got an idea what's wrong?
			  
			
			
			
				
(This post was last modified: 02-01-2012, 05:10 PM by Saren.)
 
				
			 
		 |  
	 
 | 
 
	| 02-01-2012, 05:00 PM  | 
	
		
	 | 
 
 
	
		
		Your Computer 
 
 
		
			SCAN ME! 
			
			
			
 
			
	Posts: 3,456 
	Threads: 32 
	Joined: Jul 2011
	
 Reputation: 
235
		
	 | 
	
		
			
RE: Key 
			 
			
				 (02-01-2012, 05:00 PM)Saren Wrote:  Sooo, you got an idea what's wrong? 
Read post #6.
			  
			
			
 
			
		 |  
	 
 | 
 
	| 02-01-2012, 07:32 PM  | 
	
		
	 | 
 
 
	
		
		Saren 
 
 
		
			Member 
			
			
			
 
			
	Posts: 196 
	Threads: 20 
	Joined: Jan 2012
	
 Reputation: 
1
		
	 | 
	
		
			
RE: Key 
			 
			
				 (02-01-2012, 07:32 PM)Your Computer Wrote:  Read post #6. Right.... 
Great... now it said something about a ; .... Maybe missing, 1 too much.. I dunno...
			  
			
			
			
				
(This post was last modified: 02-01-2012, 07:37 PM by Saren.)
 
				
			 
		 |  
	 
 | 
 
	| 02-01-2012, 07:36 PM  | 
	
		
	 | 
 
 
	 
 |