Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×
Sign in to follow this  
ziga.cernic4@hotmail.com

how to keep playing sound

Recommended Posts

Hello!

 

So, I`m trying to play air_raid sound when player enters the trigger. I do this: playSound "air_raid", the problem is, its very short, and it stops after 5 seconds. How can I keep playing the sound until I want it to stop?

 

Share this post


Link to post
Share on other sites

that's because your sound should be configured as CfgEnvSounds or CfgSFX but not as CfgSounds, then it will loop forever, until trigger is deactivated

Share this post


Link to post
Share on other sites
_trigger = createTrigger[ "EmptyDetector" , position player ]; 
_trigger setTriggerStatements [ "true" , "" , "" ]; 
_trigger setSoundEffect[ "$NONE$" , "" , "BattlefieldExplosions3" , "" ];

 

Share this post


Link to post
Share on other sites
Sign in to follow this  

×