| Atilla280   Junior Member
 
 Posts: 24
 Threads: 6
 Joined: Jul 2012
 Reputation: 
1
 | 
			| Open Door On Key Pickup 
 
				I was wondering if there was a way that I could open a door on key pickup. If so please help me.
			 |  | 
	| 07-10-2012, 12:55 AM |  | 
	
		| Steve   Member
 
 Posts: 178
 Threads: 17
 Joined: Jun 2012
 Reputation: 
7
 | 
			| RE: Open Door On Key Pickup 
 
				void OnStart(){
 SetEntityPlayerInteractCallback("NAME_OF_KEY", "OnKeyPickUp", true);
 }
 void OnKeyPickUp(string &in asEntity)
 {
 SetSwingDoorLocked("NAME_OF_DOOR", false, true);
 }
 This should work if you have any problem ask me.
 
 CURRENTLY WORKING ON:
Final Light = 40% 
Need of voice actors. |  | 
	| 07-10-2012, 09:12 AM |  | 
	
		| zaggnut   Member
 
 Posts: 62
 Threads: 2
 Joined: Jul 2012
 Reputation: 
1
 | 
			| RE: Open Door On Key Pickup 
 |  | 
	| 07-10-2012, 09:33 AM |  | 
	
		| Atilla280   Junior Member
 
 Posts: 24
 Threads: 6
 Joined: Jul 2012
 Reputation: 
1
 | 
			| RE: Open Door On Key Pickup 
 
				I need the door to open, not unlock. Is there anyway I could go about doing that?
			 |  | 
	| 07-10-2012, 02:59 PM |  | 
	
		| Your Computer   SCAN ME!
 
 Posts: 3,456
 Threads: 32
 Joined: Jul 2011
 Reputation: 
235
 | 
			| RE: Open Door On Key Pickup 
 
 |  | 
	| 07-10-2012, 04:35 PM |  | 
	
		| Atilla280   Junior Member
 
 Posts: 24
 Threads: 6
 Joined: Jul 2012
 Reputation: 
1
 | 
			| RE: Open Door On Key Pickup 
 
				Thanks computer. You've helped me so much everything I know with Amnesia custom stories is based off of your tuts.
			 |  | 
	| 07-10-2012, 07:30 PM |  |