RawkBandMan 
			Posting Freak5  
	
		
			
RE: Anyone need help? 
 
				I have yet another question. Not much of a scripting question, because the scripting part of it I know.
			
			
I've come to learn to not fear the living, nor the dead... But the monsters that hide in closets. 
			
		 
 
 
	05-21-2011, 03:36 PM  
		
	 
 
	
		Exostalker 
			Member3  
	
		
			
RE: Anyone need help? 
 
				This just gives me unexpected end of file error, could someone check what is wrong?
I checked it a few times and still can't figure out what's wrong...
////////////////////////////
 
 
 
	05-21-2011, 04:50 PM  
		
	 
 
	
		Modular100 
			Junior Member0  
	
		
			
RE: Anyone need help? 
 
				void OnStart()
I've been using this code to activate an enemy and close a door when the player enters an area, but the map won't load when I try to enter it.
But I get this error:
Main (9,1) : ERR  : Unexpected token '{'
Since I'm a complete noob at scripting, I'm not able to check my own code for mistakes, so I'll just miss the obvious. Some help would be very appreciated! 
 
			
			
 
 
 
	05-22-2011, 04:30 PM  
		
	 
 
	
		Kyle 
			Posting Freak7  
	
		
			
RE: Anyone need help? 
 
				@Modular100,
It should be this:
void Enemy1Collide(string &in asParent, string &in asChild, int alState)
There is supposed to be no ; at the end of it.
@Exostalker,
Here it your script. You accidently forgot 2 "}"s.
void OnStart()
 (05-21-2011, 03:36 PM) XxRoCkBaNdMaNxX Wrote:  
If you go to "config" under the Amnesia file, there are "game.cfg" and "ptest_game.cfg".
If you want to, copy the Jump, Crouch, and Stand sounds from below into your "game.cfg" under the specified subtitle from below.
You can change it much more easier when you are making a full conversion, but if you want to change it permanently, open the "game.cfg" and open "ptest_game.cfg". In the "ptest_game.cfg", scroll down until you find the subtitle "<Player_Movement_Normal", there are these lines:
JumpSound = "player_female_jump"
CrouchSound = "player_crouch"
StandSound = "player_stand"
Copy them and then paste under the subtitle in your "game.cfg" file under the same subtitle. If you want to, you can change all the other movement speeds and whatnot.
Sorry if I sort of repeated myself. :p
P.S. You can remove these 3 lines from your "game.cfg" if you want to switch back to Daniel. 
				
(This post was last modified: 05-22-2011, 05:36 PM by Kyle .) 
 
				
			 
		 
 
 
	05-22-2011, 05:05 PM  
		
	 
 
	
		Modular100 
			Junior Member0  
	
		
			
RE: Anyone need help? 
 
				Quote: @Modular100,
Thanks alot! You're a lifesaver! 
 
			
			
 
 
 
	05-22-2011, 05:38 PM  
		
	 
 
	
		Kyle 
			Posting Freak7  
	
		
			
RE: Anyone need help? 
 
				 (05-22-2011, 05:38 PM) Modular100 Wrote:  Quote: @Modular100,
You're welcome! And I'm only 13 years old. :p
			
 
			
			
 
 
 
	05-22-2011, 05:41 PM  
		
	 
 
	
		xtron 
			Senior Member2  
	
		
			
RE: Anyone need help? 
 
				Kyle. How do i make a script so that when i take a key a monster spawns? AND! how do i make a script so that when i open a door it explodes and/or a entity comes with speed out of the room.
			
			
			
			
		 
 
 
	05-22-2011, 06:00 PM  
		
	 
 
	
		Kyle 
			Posting Freak7  
	
		
			
RE: Anyone need help? 
 
				 (05-22-2011, 06:00 PM) xtron Wrote:  
I'm not sure what you mean with the second question, but the first one, you can try this:
void OnStart()
 
			
			
				
(This post was last modified: 05-22-2011, 06:42 PM by Kyle .) 
 
				
			 
		 
 
 
	05-22-2011, 06:41 PM  
		
	 
 
	
		xtron 
			Senior Member2  
	
		
			
RE: Anyone need help? 
 
				 (05-22-2011, 06:41 PM) Kyle Wrote:   (05-22-2011, 06:00 PM) xtron Wrote:  void OnStart()
Could you try add it for me since I don't understand. Is It possible to have a "SetEntity" at at "void onstart" ?. Cuz i added some keys etc and they're only "Add" and not "SetEntity".
			
 
			
Attached Files script file.rar  (Size: 765 bytes / Downloads: 241)
 
			
Dubstep <3  
 
 
	05-22-2011, 07:26 PM  
		
	 
 
	
		Kyle 
			Posting Freak7  
	
		
			
RE: Anyone need help? 
 
				What is the name of the key that you want to be interacted with which then causes the monster to spawn?
			
			
 
 
 
	05-22-2011, 07:33 PM