Zaffre 
			Posting Freak30  
	
		
			
Scripting Error 
 
				Hi. Recently I've begun creating a custom story with the help of YourComputer's video series. Up to now, I've created scripts without problems (and fixed errors) but recently I've gotten one I can't seem to figure out. I've looked over the script multiple times, but find nothing wrong. This is what I'm getting:
And this is my map01.hps:
Spoiler below!  
void OnStart()
 
 
When a key is picked up, a Grunt will spawn behind a door, smash the door down, and make his way outside. Once he's outside, if a lever is pulled, a cave in will spawn and a ragdoll of the Grunt will spawn and fall onto the ground.
Thanks in advance!
			
As of September 2nd, 2014, I've left the Frictional forums. Check my profile for more details. 
			
		 
 
 
	08-29-2012, 04:45 PM  
		
	 
 
	
		Melvin 
			Member5  
	
		
			
RE: Scripting Error 
 
				void DoCaveIn(string &in entity, int level state)
			
			
 
 
 
	08-29-2012, 04:49 PM  
		
	 
 
	
		Statyk 
			Schrödinger's Mod241  
	
		
			
RE: Scripting Error 
 
				void DoCaveIn(string &in entity, int level_state )level_state  == 1);
			
			
			
				
(This post was last modified: 08-29-2012, 04:55 PM by Statyk .) 
 
				
			 
		 
 
 
	08-29-2012, 04:55 PM  
		
	 
 
	
		Zaffre 
			Posting Freak30  
	
		
			
RE: Scripting Error 
 
				 (08-29-2012, 04:55 PM) Statyk Wrote:  level_state )level_state  == 1);That fixed it, (thanks a bunch!)but now I'm getting a different error.
Since I'm relatively new to AngelScript, I'm not sure what this means. If I'm correct, the integers in the parentheses mean the line of code and the character of code.
[quote="SmokeMelvin"]
Quote: void DoCaveIn(string &in entity, int level state)
Also, this did not fix the error.
If I get an answer and I'm still getting errors, I'll stop pestering you and just try it again.
			
 
			
			
As of September 2nd, 2014, I've left the Frictional forums. Check my profile for more details. 
			
				
(This post was last modified: 08-29-2012, 05:35 PM by Zaffre .) 
 
				
			 
		 
 
 
	08-29-2012, 05:30 PM  
		
	 
 
	
		Steve 
			Member7  
	
		
			
RE: Scripting Error 
 
				just taking a fast look I found the errors I think.
			
			
CURRENTLY WORKING ON: 
Final Light  = 40%
Need of voice actors.
				
(This post was last modified: 08-29-2012, 06:04 PM by Steve .) 
 
				
			 
		 
 
 
	08-29-2012, 06:04 PM  
		
	 
 
	
		Statyk 
			Schrödinger's Mod241  
	
		
			
RE: Scripting Error 
 
				Try this. I highlighted changes in bold:
Spoiler below!  
SetEntityConnectionStateChangeCallback ("lever_small01_1", "DoCaveIn");alState )alState  == 1)"cave_in_*" , true);
 
 
			 
 
 
	08-29-2012, 06:09 PM  
		
	 
 
	
		Zaffre 
			Posting Freak30  
	
		
			
RE: Scripting Error 
 
				 (08-29-2012, 06:09 PM) Statyk Wrote:  
Spoiler below!  
SetEntityConnectionStateChangeCallback ("lever_small01_1", "DoCaveIn");alState )alState  == 1)"cave_in_*" , true);
 
 Thank you. All the errors are gone and everything works great. Thanks a ton!
			
 
			
			
As of September 2nd, 2014, I've left the Frictional forums. Check my profile for more details. 
			
		 
 
 
	08-29-2012, 06:28 PM  
		
	 
 
	
		Statyk 
			Schrödinger's Mod241  
	
		
			
RE: Scripting Error 
 
				No problemo =]
			
			
			
			
		 
 
 
	08-29-2012, 07:32 PM