Jump to content
Sign in to follow this  
POLPOX

playSound3D problem?

Recommended Posts

I write a code of playSound3D in .sqf file, but it isn't works.

I write the code in debug console too, it's works.

*omitted*
_soundSource = createVehicle ["Land_Can_V1_F",[0,0,0],[],0,"NONE"] ;
_soundSource setPos _pos ;
sleep 0.1 ; playSound3D ["A3\Sounds_F\weapons\Explosion\expl_shell_1.wss",_soundSource,true,[0,0,1],10] ;
*omitted*

is this bug? anyone in this problem? please advice.

Share this post


Link to post
Share on other sites

>SilentSpike

No, it isn't shows scripting errors. just no sound.

---------- Post added at 10:07 ---------- Previous post was at 09:54 ----------

I'm sorry, no sound is wrong. sound is playing, but it played from [0,0,0] and delayed.

Share this post


Link to post
Share on other sites

Hmm, weird that it works in the debug console as that's an unscheduled environment. Anyway, have you tried putting a \ in front of the A3 in your path? That usually indicates to use the game folder if I recall correctly.

Edit: Very strange, will think about that one some more.

Share this post


Link to post
Share on other sites

Ah, I'm sorry, solve it. wrong paramaters...

playSound3D ["A3\Sounds_F\weapons\Explosion\expl_shell_1.wss",_soundSource,true,_pos,10]

it works.

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  

×