3 static SoundOnVehicle
SaySound(
Object source,
string sound_name,
float distance,
bool looped)
5 bool is_female = source.ConfigGetBool(
"woman");
8 string path_class =
"CfgActionSounds " + sound_name;
9 string path_sound = path_class +
" sounds";
13 string path_sound_female = path_class +
"_female" +
" sounds";
15 if(is_female &&
GetDayZGame().ConfigIsExisting(path_sound_female))
17 path_sound = path_sound_female;
static SoundOnVehicle SaySound(Object source, string sound_name, float distance, bool looped)
proto native void ConfigGetTextArray(string path, out TStringArray values)
Get array of strings from config on path.
proto native SoundOnVehicle CreateSoundOnObject(Object source, string sound_name, float distance, bool looped, bool create_local=false)
static ref TStringArray ARRAY_STRING
proto native CGame GetGame()
static proto int RandomInt(int min, int max)
Returns a random int number between and min [inclusive] and max [exclusive].