Raymond 
 
 
		
			Member 
			
			
			
 
			
	Posts: 126 
	Threads: 24 
	Joined: Feb 2011
	
 Reputation: 
0
		
	 | 
	
		
			
How to make a monster appear after i read a note? 
			 
			
				As the title said, how to make a monster appear after i read a note? Please help   ! 
 
For example, when i read a note than the monster appear behind me.
			  
			
			
 
One World To Another [DEMO] coming soon. 
			
				
(This post was last modified: 02-22-2011, 04:31 AM by Raymond.)
 
				
			 
		 |  
	 
 | 
 
	| 02-22-2011, 04:30 AM  | 
	
		
	 | 
 
 
	
		
		Tanshaydar 
 
 
		
			From Beyond 
			
			
			
 
			
	Posts: 3,085 
	Threads: 17 
	Joined: Mar 2009
	
 Reputation: 
67
		
	 | 
	
		
			
RE: How to make a monster appear after i read a note? 
			 
			
				You need to write a callback function when interacted with note. 
void PickedUpNote(string &in entity) 
{ 
    SetEntityActive("servant_grunt_1", true); 
}
 
Write PickedUpNote in level editor for the not, in "when interacted" part. 
Place a grunt or something where you want, then deactivate it, then activate it with note.
 
Next time, try to search, which will give you much faster and better answers.
			  
			
			
 
			
				
(This post was last modified: 02-22-2011, 05:05 AM by Tanshaydar.)
 
				
			 
		 |  
	 
 | 
 
	| 02-22-2011, 05:04 AM  | 
	
		
	 | 
 
 
	
		
		Raymond 
 
 
		
			Member 
			
			
			
 
			
	Posts: 126 
	Threads: 24 
	Joined: Feb 2011
	
 Reputation: 
0
		
	 | 
	
		
			
RE: How to make a monster appear after i read a note? 
			 
			
				 (02-22-2011, 05:04 AM)Tanshaydar Wrote:  You need to write a callback function when interacted with note. 
 
void PickedUpNote(string &in entity) 
{ 
    SetEntityActive("servant_grunt_1", true); 
}
  
Write PickedUpNote in level editor for the not, in "when interacted" part. 
Place a grunt or something where you want, then deactivate it, then activate it with note. 
 
Next time, try to search, which will give you much faster and better answers. 
I don't quite understand.  
 (02-22-2011, 06:05 AM)Raymond Wrote:   (02-22-2011, 05:04 AM)Tanshaydar Wrote:  You need to write a callback function when interacted with note. 
 
void PickedUpNote(string &in entity) 
{ 
    SetEntityActive("servant_grunt_1", true); 
}
  
Write PickedUpNote in level editor for the not, in "when interacted" part. 
Place a grunt or something where you want, then deactivate it, then activate it with note. 
 
Next time, try to search, which will give you much faster and better answers.  
I got an error when i test the map, do i need to replace the "string &in entity" into the note's name? I am new to these things, sorry. 
			 
			
			
 
One World To Another [DEMO] coming soon. 
			
				
(This post was last modified: 02-22-2011, 06:13 AM by Raymond.)
 
				
			 
		 |  
	 
 | 
 
	| 02-22-2011, 06:05 AM  | 
	
		
	 | 
 
 
	
		
		Tanshaydar 
 
 
		
			From Beyond 
			
			
			
 
			
	Posts: 3,085 
	Threads: 17 
	Joined: Mar 2009
	
 Reputation: 
67
		
	 | 
	
		
			
RE: How to make a monster appear after i read a note? 
			 
			
				There should be some interact call back in the level editor for the note. Just write PickedUpNote there, no need to write string &in entity anywhere.
			 
			
			
 
			
		 |  
	 
 | 
 
	| 02-22-2011, 07:29 AM  | 
	
		
	 | 
 
 
	
		
		Raymond 
 
 
		
			Member 
			
			
			
 
			
	Posts: 126 
	Threads: 24 
	Joined: Feb 2011
	
 Reputation: 
0
		
	 | 
	
		
			
RE: How to make a monster appear after i read a note? 
			 
			
				 (02-22-2011, 07:29 AM)Tanshaydar Wrote:  There should be some interact call back in the level editor for the note. Just write PickedUpNote there, no need to write string &in entity anywhere. 
Thanks, it works!
			  
			
			
 
One World To Another [DEMO] coming soon. 
			
		 |  
	 
 | 
 
	| 02-22-2011, 07:39 AM  | 
	
		
	 | 
 
 
	
		
		Mad Aztec 
 
 
		
			Junior Member 
			
			
			
 
			
	Posts: 6 
	Threads: 1 
	Joined: Jun 2011
	
 Reputation: 
0
		
	 | 
	
		
			
RE: How to make a monster appear after i read a note? 
			 
			
				 (02-22-2011, 07:29 AM)Tanshaydar Wrote:  There should be some interact call back in the level editor for the note. Just write PickedUpNote there, no need to write string &in entity anywhere. 
I'm afraid I also have a question,   , do you mean writing PickedUpNote in the notes CallbackFunc, and writing SetEntityActive in the notes PlayerInteractCallback? I'm a little bit confused right now.
			  
			
			
			
				
(This post was last modified: 06-22-2011, 03:52 PM by Mad Aztec.)
 
				
			 
		 |  
	 
 | 
 
	| 06-22-2011, 03:48 PM  | 
	
		
	 | 
 
 
	 
 |