Jump to content
Sign in to follow this  
MaxPower44

Create sound in the game

Recommended Posts

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

Why not just use the playsound command? it would be much easier.

RED

Share this post


Link to post
Share on other sites

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

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×