MaxPower44 1 Posted March 15, 2003 Hello, I'm creating a dynamic mission,I try to play sound but I've somme troubles. I want to have a sound that is localize in space like when you place a sound in the editor. I use "alarm" sound and I try this </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">_temp = "alarm" createVehicle _position<span id='postcolor'>And </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">_temp = "alarm" camcreate _position<span id='postcolor'>But the both crash Ofp. alarm is an originaly sound of Ofp and it is declared in cfgvehicles but don't herited of All. I can't create object in editor because I don't know how many alarm i should use in the same time during the game. Any suggestion ? Share this post Link to post Share on other sites
RED 0 Posted March 15, 2003 Why not just use the playsound command? it would be much easier. RED Share this post Link to post Share on other sites
MaxPower44 1 Posted March 15, 2003 playsound is not localize with a position. If the player is not near the sound's source, it's not the same as if he is on the other side of the island. Do you understood what I mean ? Share this post Link to post Share on other sites
RED 0 Posted March 15, 2003 Yes, then setpos a gamelogic (or anyother object) to the position required and use the say command on it. RED Share this post Link to post Share on other sites
MaxPower44 1 Posted March 15, 2003 Great !!! I try it now Thx Thx Thx /Edit Thx again Exacty what I need Share this post Link to post Share on other sites