ironman0001 
 
 
		
			Member 
			
			
			
 
			
	Posts: 53 
	Threads: 8 
	Joined: Sep 2012
	
 Reputation: 
0
		
	 | 
	
		
			
My grunt hallucination is turned completely around and isn't running towards me 
			 
			
				I made a grunt hallucination and he is turned completely around And doesn't run towards me... And in the level editor, i have him facing where my character is going to walk... I want him to be facing me and runs towards me as soon as he pops up! 
 
 (09-29-2012, 07:02 PM)ironman0001 Wrote:  I made a grunt hallucination and he is turned completely around And doesn't run towards me... And in the level editor, i have him facing where my character is going to walk... I want him to be facing me and runs towards me as soon as he pops up! Bump
			  
			
			
			
				
(This post was last modified: 09-29-2012, 07:22 PM by ironman0001.)
 
				
			 
		 |  
	 
 | 
 
	| 09-29-2012, 07:02 PM  | 
	
		
	 | 
 
 
	
		
		Statyk 
 
 
		
			Schrödinger's Mod 
			
			
			
 
			
	Posts: 4,390 
	Threads: 72 
	Joined: Sep 2011
	
 Reputation: 
241
		
	 | 
	
		
			
RE: My grunt hallucination is turned completely around and isn't running towards me 
			 
			
				He faces the one way in game at all times. Try using the search bar before posting a thread. Use clever mapping or scripts.
			 
			
			
			
		 |  
	 
 | 
 
	| 09-29-2012, 07:25 PM  | 
	
		
	 | 
 
 
	
		
		i3670 
 
 
		
			Posting Freak 
			
			
			
 
			
	Posts: 1,308 
	Threads: 74 
	Joined: Oct 2011
	
 Reputation: 
36
		
	 | 
	
		
			
RE: My grunt hallucination is turned completely around and isn't running towards me 
			 
			
				just put ShowEnemyPlayerPosition(string& asName); in the script. Problem solved.
			 
			
			
 
			
		 |  
	 
 | 
 
	| 09-30-2012, 12:42 AM  | 
	
		
	 | 
 
 
	
		
		Robby 
 
 
		
			Posting Freak 
			
			
			
 
			
	Posts: 2,549 
	Threads: 38 
	Joined: Jun 2009
	
 Reputation: 
47
		
	 | 
	
		
			
RE: My grunt hallucination is turned completely around and isn't running towards me 
			 
			
				ironman0001, you're creating too many threads. Write all your problems into one thread, so that'll keep things clear in this forum.
			 
			
			
 
Infrequently active. Don't expect an immediate response. Best to contact me at a different locale. If I create a thread, expect me to be quite active. 
			
		 |  
	 
 | 
 
	| 09-30-2012, 07:59 AM  | 
	
		
	 | 
 
 
	
		
		ironman0001 
 
 
		
			Member 
			
			
			
 
			
	Posts: 53 
	Threads: 8 
	Joined: Sep 2012
	
 Reputation: 
0
		
	 | 
	
		
			
RE: My grunt hallucination is turned completely around and isn't running towards me 
			 
			
				I have another question! How do i make the character look around?
			 
			
			
			
		 |  
	 
 | 
 
	| 10-01-2012, 07:42 PM  | 
	
		
	 | 
 
 
	
		
		Robby 
 
 
		
			Posting Freak 
			
			
			
 
			
	Posts: 2,549 
	Threads: 38 
	Joined: Jun 2009
	
 Reputation: 
47
		
	 | 
	
		
			
RE: My grunt hallucination is turned completely around and isn't running towards me 
			 
			
				With a script? 
 
Use this function: 
 
void StartPlayerLookAt(string& asEntityName, float afSpeedMul, float afMaxSpeed, string& asAtTargetCallback); 
void StopPlayerLookAt(); 
Forces the player to look at a certain entity until StopPlayerLookAt is used. 
asEntityName - the entity to look at 
afSpeedMul - how fast should the player look at the entity 
afMaxSpeed - maximum speed allowed 
asAtTargetCallback - function to call when player looks at target
			 
			
			
 
Infrequently active. Don't expect an immediate response. Best to contact me at a different locale. If I create a thread, expect me to be quite active. 
			
		 |  
	 
 | 
 
	| 10-01-2012, 07:43 PM  | 
	
		
	 | 
 
 
	
		
		Kreekakon 
 
 
		
			Pick a god and pray! 
			
			
			
 
			
	Posts: 3,063 
	Threads: 70 
	Joined: Mar 2012
	
 Reputation: 
124
		
	 | 
	
		
			
RE: My grunt hallucination is turned completely around and isn't running towards me 
			 
			
				You can use the StartPlayerLookAt script to make the player look at a certain spot. Also, I never fumbled much with these, but the various camera altering scripts should work too depending on your needs. 
 
Look them up in Script functions on the wiki.
			 
			
			
 
			
		 |  
	 
 | 
 
	| 10-01-2012, 07:45 PM  | 
	
		
	 | 
 
 
	
		
		Robby 
 
 
		
			Posting Freak 
			
			
			
 
			
	Posts: 2,549 
	Threads: 38 
	Joined: Jun 2009
	
 Reputation: 
47
		
	 | 
	
		
			
RE: My grunt hallucination is turned completely around and isn't running towards me 
			 
			
			
			
 
Infrequently active. Don't expect an immediate response. Best to contact me at a different locale. If I create a thread, expect me to be quite active. 
			
		 |  
	 
 | 
 
	| 10-01-2012, 07:45 PM  | 
	
		
	 | 
 
 
	
		
		ironman0001 
 
 
		
			Member 
			
			
			
 
			
	Posts: 53 
	Threads: 8 
	Joined: Sep 2012
	
 Reputation: 
0
		
	 | 
	
		
			
RE: My grunt hallucination is turned completely around and isn't running towards me 
			 
			
				 (10-01-2012, 07:43 PM)Nemet Robert Wrote:  With a script? 
 
Use this function: 
 
void StartPlayerLookAt(string& asEntityName, float afSpeedMul, float afMaxSpeed, string& asAtTargetCallback); 
void StopPlayerLookAt(); 
Forces the player to look at a certain entity until StopPlayerLookAt is used. 
asEntityName - the entity to look at 
afSpeedMul - how fast should the player look at the entity 
afMaxSpeed - maximum speed allowed 
asAtTargetCallback - function to call when player looks at target And is there a way to make an enemy just stand without attacking?
			  
			
			
			
		 |  
	 
 | 
 
	| 10-01-2012, 07:53 PM  | 
	
		
	 | 
 
 
	
		
		Robby 
 
 
		
			Posting Freak 
			
			
			
 
			
	Posts: 2,549 
	Threads: 38 
	Joined: Jun 2009
	
 Reputation: 
47
		
	 | 
	
		
			
RE: My grunt hallucination is turned completely around and isn't running towards me 
			 
			
				 (10-01-2012, 07:53 PM)ironman0001 Wrote:  And is there a way to make an enemy just stand without attacking? Possible. You click the enemy (go to its "entity" tab), and select "DisableTriggers" or something like that. That should do it.
			  
			
			
 
Infrequently active. Don't expect an immediate response. Best to contact me at a different locale. If I create a thread, expect me to be quite active. 
			
		 |  
	 
 | 
 
	| 10-01-2012, 07:54 PM  | 
	
		
	 | 
 
 
	 
 |