| tonitoni1998   Member
 
 Posts: 163
 Threads: 54
 Joined: Oct 2012
 Reputation: 
1
 | 
			| How to trigger sounds, entities etc. 
 
				hey guys,
 i want to trigger a sound, when the player enters an area. i already discovered the "Areas" button but dont know how to use it. can you help me?
 
 thanks alot
 
 When you are looking for someone, to do the scripting for your Custom Story, ask me! |  | 
	| 11-06-2012, 06:48 PM |  | 
	
		| tonitoni1998   Member
 
 Posts: 163
 Threads: 54
 Joined: Oct 2012
 Reputation: 
1
 | 
			| RE: How to trigger sounds, entities etc. 
 
				well...
			 
 When you are looking for someone, to do the scripting for your Custom Story, ask me! |  | 
	| 11-06-2012, 08:04 PM |  | 
	
		| ZodiaC   Member
 
 Posts: 120
 Threads: 8
 Joined: Oct 2012
 Reputation: 
2
 | 
			| RE: How to trigger sounds, entities etc. 
 
				Void OnStart{
 AddEntityCollideCallback(string& asParentName, string& asChildName, string& asFunction, bool abDeleteOnCollide, int alStates);
 }
 
 void MyFunc(string &in asParent, string &in asChild, int alState)
 {
 PlaySoundAtEntity(string& asSoundName, string& asSoundFile, string& asEntity, float afFadeTime, bool abSaveSound);
 }
 
 Just make the appropriate changes.
 
 
 |  | 
	| 11-06-2012, 08:41 PM |  |