Jump to content

sound trigger


khalcifer

Recommended Posts

this i use, but how can i add stop play if leave radius

class Item23
        {
            position[]={9910.58,0,5432.17};
            a=15;b=15;
            TRGDEF
            name="zonesanford";
            expCond="(player distance zonesanford) < 25;";
            expActiv="sanford = [] execVM ""custom\sanford\music.sqf"";";
            expDesactiv="terminate sanford; titleText [""Thanks For visiting us! Come Again"", ""PLAIN DOWN"", 3];";
        };

Link to comment
Share on other sites

in music.sqf 

playSound "sanford";

and if enter in trader play sound music 1:40 min w/o loop, but For example player enter in trader leave, enter and etc sound muliple xxx. Need only when players leave radius sounds stop play.

I think you understand me.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Discord

×
×
  • Create New...