| kartanonperuna   Posting Freak
 
 Posts: 755
 Threads: 44
 Joined: Oct 2011
 Reputation: 
8
 | 
			| How Do I  trigger a sound file at a specific area? 
 
				So I want it to be like:The player walks into this area,and theres a guy who starts talking.Now how do I do this?
			 |  | 
	| 01-09-2012, 07:17 AM |  | 
	
		| flamez3   Posting Freak
 
 Posts: 1,281
 Threads: 48
 Joined: Apr 2011
 Reputation: 
57
 | 
			| RE: How Do I  trigger a sound file at a specific area? 
 
				 Quote:void OnStart(){
 AddEntityCollideCallback("Player", "ScriptArea_1", "Sound", true, 1;
 }
 
 void Sound(sting &in asParent, string &in asChild, int alState)
 {
 PlaySoundAtEntity(string& asSoundName, string& asSoundFile, string& asEntity, float afFadeTime, bool abSaveSound);
 }
 
Please, head over here: http://wiki.frictionalgames.com/hpl2/amn...ons#player 
It will tell you what you how and what you need to do what you want. Research is key.
			 
 
				
(This post was last modified: 01-09-2012, 07:23 AM by flamez3.)
 |  | 
	| 01-09-2012, 07:19 AM |  | 
	
		| BlueFury   Senior Member
 
 Posts: 470
 Threads: 30
 Joined: May 2011
 Reputation: 
9
 | 
			| RE: How Do I  trigger a sound file at a specific area? 
 
				These scripts can be easily made with the wiki. Please stop making threads
 
 Sticks and stones may break our bones, but words will break our hearts. – Robert Fulghum |  | 
	| 01-09-2012, 09:55 AM |  |