Hey, thanks for the input bigshotking, unfortunatly after testing it doesnt seem to work with say3D.
EDIT:- I wonder if i could use something similar to the method in the following post? I've tried the MP Framework option, but cannot get it to work. Perhaps someone with a better understanding might be able to help.
http://forums.bistudio.com/showthrea...r+sound+script
EDIT2:- Well i might actually have this working here is the script modified:
Code:
if(!isServer)exitWith{};
waituntil { !isNil "BIS_fnc_init" };
private ["_source", "_delay", "_norepeat", "_radius", "_sounds", "_selected", "_sound", "_length", "_wait"];
_source = _this select 0;
_delay = _this select 1;
if(count _this > 2) then {_norepeat = _this select 2;} else {_norepeat = Nil;};
_radius = 20;
//["string"(name as defined in description.ext or by default),integer(length in seconds)]
_sounds = [["ch",25],["doe",49],["wggo",48],["gwi",88],["hb",39],["hv",102],["wggo",52]];
if(!isNil "_norepeat") then {_sounds = _sounds - [_norepeat]};
_selected = _sounds select (floor(random(count _sounds)));
_sound = _selected select 0;
_length = _selected select 1;
if(!alive _source) exitWith {};
[nil, _source, rSAY, _sound] call RE;
_wait = (_length + (random _delay));
sleep _wait;
[_source,_delay,_selected] execVM "scripts\baseradio.sqf";
Using the rSAY function seems to actually do the job, my question now is to those more familiar with the MP Framework...
Is the above method the best bet in terms of script/server performance? As i have quite alot going on the mission i really want to find the most efficient way of doing things.