Forum Jump :

Author Message


Posts: 1
Rank:


Level: Member

Country: au
Location:
Occupation:
Age:
In-game name: Thermite

 
#1 Posted at 2013-07-10 14:19        
     
Sometimes when im in game people just write a word and it triggers a sentence. for example once it was a guy saying shutup or Tobuscus from youtube saying something. How do you do this?


Author Message


Posts: 334
Rank:


Level: Member

Country: de
Location:
Occupation: Student
Age: 29
In-game name:

 
#2 Posted at 2013-07-10 15:05        
     
I dont know how to react to chat but I can play sounds:
sound have to be saved as .ogg
SOUND can be renamed to anything
description.ext
class CfgSounds
{
	sounds[] = {SOUND};

	class SOUND
	{
		name = "SOUND"; // Name for mission editor
		sound[] = {SOUND.ogg, db + 0, 1.0};
		titles[] = {0, ""};
	};
};

play sound with
playSound "SOUND";