ZxBrad 
			Member0  
	
		
			
NEED HELP!!! plz answer. 
 
				I dont know what im doing wrong. This stuff is confusing. 
all i want is a door to close behind me and my character to spin around and look at it.  Heres the my script for it. The game keeps giving me an error when i try to start up the map.
Spoiler below!  
 
 
			WARNING : Noob Doesn't Know How To Script.
 
 
 
	04-11-2011, 03:43 AM  
		
	 
 
	
		Anxt 
			Senior Member10  
	
		
			
RE: NEED HELP!!! plz answer. 
 
				What is the error message?
			
			
			
 
 
 
	04-11-2011, 04:03 AM  
		
	 
 
	
		MrBigzy 
			Senior Member8  
	
		
			
RE: NEED HELP!!! plz answer. 
 
				AddEntityCollideCallback("Player", "doorslam", "Collidedoorslam, true, 1);
You're missing a ". This is why I made that thread about scripting errors, these errors are so common. 
Also:
SetSwingDoorClosed("castle_2". true, true);
A period instead of a comma D:
			
				
(This post was last modified: 04-11-2011, 04:12 AM by MrBigzy .) 
 
				
			 
		 
 
 
	04-11-2011, 04:11 AM  
		
	 
 
	
		ZxBrad 
			Member0  
	
		
			
RE: NEED HELP!!! plz answer. 
 
				 (04-11-2011, 04:11 AM) MrBigzy Wrote:  
thx i got it too work. But i want the character to gasp or get scared. and also how do i make him stop staring at the door when its done.
			
 
			
			
WARNING : Noob Doesn't Know How To Script.
 
 
 
	04-11-2011, 04:49 AM  
		
	 
 
	
		Dalroc 
			Member0  
	
		
			
RE: NEED HELP!!! plz answer. 
 
				 (04-11-2011, 04:49 AM) ZxBrad Wrote:  Your'e looking for these:
void PlaySoundAtEntity(string& asSoundName, string& asSoundFile, string& asEntity, float afFadeTime, bool abSaveSound);
 
			
			
			
		 
 
 
	04-11-2011, 09:47 AM  
		
	 
 
	
		ZxBrad 
			Member0  
	
		
			
RE: NEED HELP!!! plz answer. 
 
				 (04-11-2011, 09:47 AM) Dalroc Wrote:   (04-11-2011, 04:49 AM) ZxBrad Wrote:  void PlaySoundAtEntity(string& asSoundName, string& asSoundFile, string& asEntity, float afFadeTime, bool abSaveSound);
Thx, but where would i put these in my script and also what would i know what to place them with?
Spoiler below!  
////////////////////////////
 
 
			 
			
			
WARNING : Noob Doesn't Know How To Script.
 
 
 
	04-12-2011, 02:38 PM