Bozcovich 
			Junior Member0  
	
		
			
Scripts not working 
 
				Hey, ive recently started making a custom story (my first). I cant get the scripts to start working, i have a script to open a door with a key, but it doesnt work, and i have a script that gives the player a lantern in the begginning and that doesnt work either. Help please?
			
			
			
				
(This post was last modified: 01-17-2012, 01:43 AM by Bozcovich .) 
 
				
			 
		 
 
 
	01-12-2012, 09:54 PM  
		
	 
 
	
		Statyk 
			Schrödinger's Mod241  
	
		
			
RE: Scripts not working 
 
				Do you have two "void OnStart"s?
			
			
			
		 
 
 
	01-13-2012, 12:23 AM  
		
	 
 
	
		flamez3 
			Posting Freak57  
	
		
			
RE: Scripts not working 
 
				Use this:
 Quote: void OnStart()
Whenever you are naming something in a field that has the word "string" in it means that you need to put the exact name of the thing you are describing as well as "" around the start and end of the text. I fixed it up for you. 
			
 
 
 
	01-13-2012, 01:29 AM  
		
	 
 
	
		Bozcovich 
			Junior Member0  
	
		
			
RE: Scripts not working 
 
				Now the key just disappears, the door is still locked 
 And i used the exact code you gave me
			
				
(This post was last modified: 01-13-2012, 09:26 PM by Bozcovich .) 
 
				
			 
		 
 
 
	01-13-2012, 09:22 PM  
		
	 
 
	
		Unearthlybrutal 
			Posting Freak26  
	
		
			
RE: Scripts not working 
 
				 (01-13-2012, 09:22 PM) Bozcovich Wrote:  Is it swing door or level door? 
			
 
			
			
 
 
 
	01-13-2012, 10:34 PM  
		
	 
 
	
		Bozcovich 
			Junior Member0  
	
		
			
RE: Scripts not working 
 
				Its a level door, but i tried it with a swing aswell :S
			
			
			
			
		 
 
 
	01-13-2012, 10:53 PM  
		
	 
 
	
		Unearthlybrutal 
			Posting Freak26  
	
		
			
RE: Scripts not working 
 
				 Try this:
Spoiler below!  
 
 
			 
			
			
 
 
 
	01-13-2012, 10:58 PM  
		
	 
 
	
		Bozcovich 
			Junior Member0  
	
		
			
RE: Scripts not working 
 
				Same problem :/
			
			
			
			
		 
 
 
	01-13-2012, 11:03 PM  
		
	 
 
	
		oscar1007 
			Member0  
	
		
			
RE: Scripts not working 
 
				 (01-12-2012, 09:54 PM) Bozcovich Wrote:  
Instead of having this:
SetSwingDoorLocked(door, false, true); 
Try this:
SetSwingDoorLocked("das door", false);
Or if its a level door:
SetLevelDoorLocked("das door", false);
peace out. hope it works!
			
 
			
			
				
(This post was last modified: 01-13-2012, 11:14 PM by oscar1007 .) 
 
				
			 
		 
 
 
	01-13-2012, 11:13 PM  
		
	 
 
	
		Bozcovich 
			Junior Member0  
	
		
			
RE: Scripts not working 
 
				That didnt work either, but i just tried this and it worked:
			
			
			
		 
 
 
	01-13-2012, 11:26 PM