M1ke_SK 230 Posted March 4, 2017 I have object, that is playing sound with 60 seconds repeat. Object is used in multiplayer mission (dedicated server) so I would like to use playSound3D because have global effect . I am open to solutions with say3D, say, ... if it is applicable in multiplayer (e.g. everybody can hear sound in multiplayer). Problem: When object is destroyed, sound is still playing. This is kind of non-realistic. I want to stop sound immediately after object is destroyed. Here is what I got so far: sound.sqf params ["_object"]; _root = str missionConfigFile select [0, count str missionConfigFile - 15]; _object setVariable ["on", true, true]; _object addEventHandler [ "HandleDamage", { (_this select 0) setDammage 1; (_this select 0) setVariable ["on", false, true]; //disable playSound3D here, when object is damaged } ]; while { _object getVariable ["on", false] } do { playSound3D [_root + "sound.ogg", _object, false, getPos _object, 100, 1, 30]; sleep 60; }; Share this post Link to post Share on other sites
TeTeT 1523 Posted March 4, 2017 I don't think that's possible. For that reason I used say3d with remoteExec in the past and either destroyed the object or moved it to 0,0,0. Share this post Link to post Share on other sites
killzone_kid 1331 Posted March 5, 2017 Did we not have the same thread just recently? Share this post Link to post Share on other sites