meanbeandk Posted September 13, 2014 Report Share Posted September 13, 2014 Hi Hope someone can help me I wont a sound to be played when a player enters my base area but have no idea where to begin :) hope someone will help a newbee ;) Link to comment Share on other sites More sharing options...
0 jamastiene Posted September 14, 2014 Report Share Posted September 14, 2014 If you find it, that would be great. I would love that too. I still wish I could find out how to add the Thirsk footsteps in the snow sounds to other world. I managed to find the actual sound files for that, but my coding abilities are nowhere near that good. Link to comment Share on other sites More sharing options...
0 meanbeandk Posted September 20, 2014 Author Report Share Posted September 20, 2014 stuck here :( have 2 files to create music in stary trader 1. file music // Trader City Stary _this = createTrigger ["EmptyDetector", [6325.6772, 7807.7412, 0]]; _this setTriggerArea [150, 150, 0, false]; _this setTriggerActivation ["NONE", "PRESENT", true]; _this setTriggerStatements ["(player distance trading_post1) < 100;", "music = true; canbuild = false;", "music = false; canbuild = true;"]; trading_post1 = _this; _trigger_0 = _this; 2. file musictrikker if (isNil "music") then { music = false; }; while {true} do { waitUntil { music }; titleText [format["Welcome to my Disco "],"PLAIN DOWN"]; titleFadeOut 4; playsound "song"; sleep 60; }; in my description i have class CfgSounds { sounds[] = {siren}; class siren { name = "siren"; sound[] = {Scripts\sirens\siren.ogg,0.5,1}; titles[] = {}; }; }; and shall add class CfgSounds { sounds[] = { Song }; class Song { name="Song"; sound[]={Song.ogg,0.9,1}; titles[] = {}; }; }; but dont know how in my init.sqf i have [] execVM "music\musictri.sqf"; [] execVM "music\music.sqf"; Link to comment Share on other sites More sharing options...
0 meanbeandk Posted September 30, 2014 Author Report Share Posted September 30, 2014 Got it to work in my init.sqf i have addet [] execVM "music\config.sqf"; My music\config.sqf [] execVM "music\musictri.sqf"; [] execVM "music\music.sqf"; And my music\musictri.sqf _this = createTrigger ["EmptyDetector", [12733.6,12360.7,1]]; // cords for the trikker _this setTriggerArea [15, 15, 0, false]; _this setTriggerActivation ["NONE", "PRESENT", true]; _this setTriggerStatements ["(player distance trading_post1) < 15;", "music = true; canbuild = false;", "music = false; canbuild = true;"]; trading_post1 = _this; _trigger_0 = _this; and my music\music.sqf if (isNil "music") then { music = false; }; while {true} do { waitUntil { music }; titleText [format["Text massage"],"PLAIN DOWN"]; titleFadeOut 4; playsound "song"; sleep 20; }; in my description.sqf class CfgSounds { sounds[] = { siren, song }; class siren { name = "siren"; sound[] = {Scripts\sirens\siren.ogg,0.5,1}; titles[] = {}; }; class Song { name="Song"; sound[]={Song.ogg,0.9,1}; titles[] = {}; }; }; if only music. If you don't have added sirens for the cop cars class CfgSounds { sounds[] = { Song }; class Song { name="Song"; sound[]={Song.ogg,0.9,1}; titles[] = {}; }; }; Hope i can help someone else whith this :) :) :) Link to comment Share on other sites More sharing options...
Question
meanbeandk
Hi
Hope someone can help me
I wont a sound to be played when a player enters my base area
but have no idea where to begin :)
hope someone will help a newbee ;)
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now