| 
		
	
		| jessehmusic   Senior Member
 
 Posts: 423
 Threads: 102
 Joined: Dec 2011
 Reputation: 
8
 | 
			| Locked and Unlocked doors§ 
 
				void OnStart(){
 AddUseItemCallback("", "Old Door key", "mansion_5", "KeyOnDoor", true);
 AddUseItemCallback("", "Hidden Key", "cabinet_metal_1", "KeyOnDoor", true);
 }
 
 
 void KeyOnDoor(string &in asItem, string &in asEntity)
 
 {
 SetSwingDoorLocked("mansion_6", false, true);
 PlaySoundAtEntity("", "unlock_door.snt", "mansion_6", 0.0f, true);
 SetSwingDoorLocked("cabinet_metal_1", false, true);
 PlaySoundAtEntity("", "unlock_door.snt", "cabinet_metal_1", 0.0f, true);
 }
 
 My doos wont be locked
 
 
				
(This post was last modified: 12-25-2011, 09:12 PM by jessehmusic.)
 |  |  
	| 12-25-2011, 08:45 PM |  |  
	
		| Your Computer   SCAN ME!
 
 Posts: 3,456
 Threads: 32
 Joined: Jul 2011
 Reputation: 
235
 | 
			| RE: Locked and Unlocked doors§ 
 
				Be more specific.
			 
 |  |  
	| 12-25-2011, 10:14 PM |  |  
	
		| SpudroSpadre   Junior Member
 
 Posts: 14
 Threads: 4
 Joined: Dec 2011
 Reputation: 
0
 | 
			| RE: Locked and Unlocked doors§ 
 
				 (12-25-2011, 08:45 PM)jessehmusic Wrote:  void OnStart(){
 AddUseItemCallback("", "Old Door key", "mansion_5", "KeyOnDoor", true);
 AddUseItemCallback("", "Hidden Key", "cabinet_metal_1", "KeyOnDoor", true);
 }
 
 
 void KeyOnDoor(string &in asItem, string &in asEntity)
 
 {
 SetSwingDoorLocked("mansion_6", false, true);
 PlaySoundAtEntity("", "unlock_door.snt", "mansion_6", 0.0f, true);
 SetSwingDoorLocked("cabinet_metal_1", false, true);
 PlaySoundAtEntity("", "unlock_door.snt", "cabinet_metal_1", 0.0f, true);
 }
 
 My doos wont be locked
 I bolded the text that might be your problem.
			 
 TENSIONAL GAMES
 
 - Currently working on a Amnesia custom story
 
 |  |  
	| 12-26-2011, 06:18 AM |  |  |