Arma 3
Not enough ratings
Voice Line
   
Award
Favorite
Favorited
Unfavorite
Data Type: Composition
Meta: Dependency
File Size
Posted
1.634 KB
26 Jul, 2023 @ 12:06pm
1 Change Note ( view )

Subscribe to download
Voice Line

Description
This script uses Play3D to play a sound on an assigned object locally. The object can be assigned by editing the variable name. Only the player who enters the trigger will hear the sound play. To make the sound global, simply replace the condition block of the trigger with "this". By default the trigger is set to repeat, however you can uncheck this if you only wish it to play once.


Additional information needed for this to work:


Create a file called "description.ext". Within the file, paste the following:

class CfgSounds
{
class voiceline01
{
name = "voiceline01"
sound[] = {"\sounds\voiceline01.ogg", db+5, 1};
titles[] = {1,""};
};

};


To add more sound files, simply copy and paste lines 3 through 8 of the above and change the class name, name, and sound file name.

class CfgSounds
{
class voiceline01
{
name = "voiceline01"
sound[] = {"\sounds\voiceline01.ogg", db+5, 1};
titles[] = {1,""};
};

class voiceline02
{
name = "voiceline02"
sound[] = {"\sounds\voiceline02.ogg", db+5, 1};
titles[] = {1,""};
};

};



Create a folder called "sounds". Within the folder, upload your track. Make sure it is an .ogg sound file.
2 Comments
Athena 4 Dec, 2024 @ 2:58am 
Hey gepard, its Ray from SAR; quick couple questions. i cant seem to find where this downloads to, would you happen to know? also are those voicelines in the video included? id really like to use them
Sr.Fox 27 Jun, 2024 @ 5:05am 
Hello, a question, where should I insert the audio track, I already created a text file called "description.ext" by copying and pasting the description next to the composition, I also created a file called "sounds" and put the audio with the name "voiceline01" and it still doesn't work, I don't know, could you please help me?