PSYKO_nz 44 Posted May 26, 2015 Hi there, i was wondering how to go about attaching a sound to an object in a mission that loops until the object is destroyed. if it helps the mission will end up on a dedicated server im doing a radar hunting mission. ive placed down the radar units from the rhs pack and was happy, then i found a sound file of the russian woodpacker ( http://en.wikipedia.org/wiki/Duga-3 ) and i thougt that the sound would be great coming from the radar arrays when there alive and then stopping when there destroyed. i've looked around a bit and i'm thoroughly confused about how to go about it. much appreciate any help you can give thanks in advance PSYKO Share this post Link to post Share on other sites
hussar32 11 Posted May 26, 2015 Hi there, i was wondering how to go about attaching a sound to an object in a mission that loops until the object is destroyed.if it helps the mission will end up on a dedicated server im doing a radar hunting mission. ive placed down the radar units from the rhs pack and was happy, then i found a sound file of the russian woodpacker ( http://en.wikipedia.org/wiki/Duga-3 ) and i thougt that the sound would be great coming from the radar arrays when there alive and then stopping when there destroyed. i've looked around a bit and i'm thoroughly confused about how to go about it. much appreciate any help you can give thanks in advance PSYKO Try this: while { (damage radar)<0.5) } do { playSound3D [ MISSION_ROOT + "sound\woodpacker.ogg", radar, false, getPos radar, 1, 1, 0]; }; And in the init.sqf (by Killzone Kid): MISSION_ROOT = call { private "_arr"; _arr = toArray __FILE__; _arr resize (count _arr - 8); toString _arr }; Share this post Link to post Share on other sites
PSYKO_nz 44 Posted May 26, 2015 thanks heaps, trying it now, one question, dio i put this in the objects init or is it an exterior script? while { (damage radar)<0.5) } do { playSound3D [ MISSION_ROOT + "sound\woodpacker.ogg", radar, false, getPos radar, 1, 1, 0]; }; when i put it in the init it throws up an error Share this post Link to post Share on other sites
hussar32 11 Posted May 28, 2015 It is an exterior script. Share this post Link to post Share on other sites
PSYKO_nz 44 Posted May 29, 2015 dosent seam to be working, ive put it in an sqf, called it in the units init and also named the unit "radar" everything is where it needs to be is there anything im missing?? Share this post Link to post Share on other sites