therisingdead Posted August 12, 2014 Report Share Posted August 12, 2014 Is it possible to have custom music playing when a player enters a specific location. I'm sure I read something on this a while ago but can't seem to find it again. Thanks Link to comment Share on other sites More sharing options...
0 StiflersM0M Posted August 12, 2014 Report Share Posted August 12, 2014 as far as i know you can create a sound source with the editor, if it works idk. but you also can do it with sensors, like this: class Item8 { position[]={1782.72,158.85699,2870.71}; activationBy="ANY"; repeating=1; interruptable=1; age="UNKNOWN"; name="zonekamenka_musiczone"; expCond="(player distance zonekamenka_musiczone) < 100;"; expActiv="playmusicin= true;"; expDesactiv="playmusicin = false;"; class Effects { }; }; Then in variables.sqf at the top add this: playmusicin = false; then in your init.sqf in the if (!isDedicated) then { section execute a script with this in it: if(playmusicin) then { playSound "YOURMUSICNAMEHERE"; }; idk if it work, only an idea dont test it. Link to comment Share on other sites More sharing options...
0 therisingdead Posted August 12, 2014 Author Report Share Posted August 12, 2014 I'll give this a go when I get home. Thanks for the response. Link to comment Share on other sites More sharing options...
0 Glenn Posted August 12, 2014 Report Share Posted August 12, 2014 You can also take a look at the following post about music as Intro and as triggered by a sensor: http://opendayz.net/threads/release-epoch-christmas-special.15018/ Link to comment Share on other sites More sharing options...
0 Gramps Posted August 13, 2014 Report Share Posted August 13, 2014 Your big issue would be the size of your mission file with extra ogg files can get big real fast and it has to be on mission side so ppl can download music. Link to comment Share on other sites More sharing options...
Question
therisingdead
Is it possible to have custom music playing when a player enters a specific location.
I'm sure I read something on this a while ago but can't seem to find it again.
Thanks
Link to comment
Share on other sites
4 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