Indiculous Posted February 27, 2014 Report Share Posted February 27, 2014 NOTICE: I do not take credit for these scripts im simply just sharing them with a tutorial! Programs i use : http://audacity.sourceforge.net/download/ Find a song you wish to use and drag and drop it into audacity. Crop the song to around 30 seconds and then "File\export" export it as OGG Name the OGG File introsong and put it in the root of your mission file (in the same place as your init.sqf) Now on to the script! 1)Open your init.sqf Around Line 88 look for //Run the player monitor Just under that place this _id = player addEventHandler ["Respawn", {_id = [] spawn player_death; _nul = [] execVM "playerspawn.sqf";}]; 2)Make a sqf called playerspawn.sqf in the same place as your init.sqf and inside that paste this into it waitUntil { alive player }; //BlurGaming Intro Script sleep 4; playsound "introSong"; cutText ["servername here", "PLAIN DOWN"]; 3)in your description.ext around line 43-55 you will see this class RscPicture { access=0; type=0; idc=-1; style=48; colorBackground[]={0,0,0,0}; colorText[]={1,1,1,1}; font="TahomaB"; sizeEx=0; lineSpacing=0; text=""; }; Under that paste this class CfgSounds { sounds[] = { introSong }; class introSong { name="introSong"; sound[]={introSong.ogg,0.9,1}; titles[] = {}; }; }; Thats it your done! Link to comment Share on other sites More sharing options...
Achmed Posted March 1, 2014 Report Share Posted March 1, 2014 has anyone got this to work? I dont get any errors but also dont get any sound Link to comment Share on other sites More sharing options...
Achmed Posted March 1, 2014 Report Share Posted March 1, 2014 finally got this to work.... it helps if you paste the correct install instructions ;) http://opendayz.net/threads/blur-gaming-custom-spawn-tutorial.9785/ xBowBii, Aslan247 and ispan55 3 Link to comment Share on other sites More sharing options...
psychosis Posted March 22, 2014 Report Share Posted March 22, 2014 not worked. Now on to the script! 1)Open your init.sqf Around Line 88 look for //Run the player monitor Just under that place this _id = player addEventHandler ["Respawn", {_id = [] spawn player_death; _nul = [] execVM "playerspawn.sqf";}]; without add ... just replace this _id = player addEventHandler ["Respawn", {_id = [] spawn player_death;}]; with this _id = player addEventHandler ["Respawn", {_id = [] spawn player_death; _nul = [] execVM "playerspawn.sqf";}]; and you forgot about : _nul = [] execVM "playerspawn.sqf"; Link to comment Share on other sites More sharing options...
caboose1 Posted March 22, 2014 Report Share Posted March 22, 2014 If using server crdits you can just add playsound "introSong"; into scripts text, obv with description change Link to comment Share on other sites More sharing options...
blur Posted March 26, 2014 Report Share Posted March 26, 2014 Glad to see people still use this, thanks for posting again! ;) Link to comment Share on other sites More sharing options...
Darihon Posted April 24, 2014 Report Share Posted April 24, 2014 Sorry for bumping an older topic, but how can I activate the intro music once a 'not dead' player joins the game? Link to comment Share on other sites More sharing options...
Sp4rkY Posted April 24, 2014 Report Share Posted April 24, 2014 Sorry for bumping an older topic, but how can I activate the intro music once a 'not dead' player joins the game? For this you only have to put [] execVM "playerspawn.sqf"; in your init.sqf at the bottom and the //Playermonitor Line you setup back as it was: _id = player addEventHandler ["Respawn", {_id = [] spawn player_death;}]; Link to comment Share on other sites More sharing options...
Darihon Posted April 24, 2014 Report Share Posted April 24, 2014 For this you only have to put [] execVM "playerspawn.sqf"; in your init.sqf at the bottom and the //Playermonitor Line you setup back as it was: _id = player addEventHandler ["Respawn", {_id = [] spawn player_death;}]; Aight, thanks! Link to comment Share on other sites More sharing options...
clarkycal Posted October 17, 2014 Report Share Posted October 17, 2014 this still works?! Link to comment Share on other sites More sharing options...
Spodermayt Posted October 18, 2014 Report Share Posted October 18, 2014 this still works?! it has worked since 2006 (playSound worked in arma 1 too.) Link to comment Share on other sites More sharing options...
Gr8 Posted October 18, 2014 Report Share Posted October 18, 2014 anybody have good intro music? Link to comment Share on other sites More sharing options...
oSoDirty Posted October 21, 2014 Report Share Posted October 21, 2014 anybody have good intro music? I usually use a good breakdown from a metal song. good for setting the DayZ mood. Link to comment Share on other sites More sharing options...
Corper Posted October 22, 2014 Report Share Posted October 22, 2014 anybody have good intro music? "Bang bang" is good ;) Link to comment Share on other sites More sharing options...
Lone Wolf AU Posted October 23, 2014 Report Share Posted October 23, 2014 How do I get it to play multiple songs randomly as player enters server? Meaning having 4 or 5 ogg files and the server plays 1 song on entry randomly from the 4 or 5 in there. Anyone know how? Cheers :) Link to comment Share on other sites More sharing options...
Phobix Posted October 23, 2014 Report Share Posted October 23, 2014 you dont want to do that, your mission file would be gigantic. Link to comment Share on other sites More sharing options...
Lone Wolf AU Posted October 23, 2014 Report Share Posted October 23, 2014 Yeah it's only 8 meg, downloads in 30 seconds tops It's how I used to do it and players liked the variety. Link to comment Share on other sites More sharing options...
Gr8 Posted October 25, 2014 Report Share Posted October 25, 2014 8MB is huge, u wanna keep it low as 2MB Link to comment Share on other sites More sharing options...
Corper Posted October 25, 2014 Report Share Posted October 25, 2014 Or 774kb like me Link to comment Share on other sites More sharing options...
FlakotaCz Posted October 25, 2014 Report Share Posted October 25, 2014 class CfgSounds { sounds[] = { carLock; introSong }; class carLock { name="carLock"; sound[]={sounds\carlock.ogg,0.9,1}; titles[] = {}; }; class introSong { name="introSong"; sound[]={introSong.ogg,0.9,1}; titles[] = {}; }; }; please repair Link to comment Share on other sites More sharing options...
R4id3n84 Posted November 8, 2014 Report Share Posted November 8, 2014 All working great however the song and credits play every time someone logs in not just after a player dies and respawns Anyway to change this ? Link to comment Share on other sites More sharing options...
R4id3n84 Posted November 11, 2014 Report Share Posted November 11, 2014 BUMP Anyone ? Link to comment Share on other sites More sharing options...
Ree Posted November 19, 2014 Report Share Posted November 19, 2014 All working great however the song and credits play every time someone logs in not just after a player dies and respawns Anyway to change this ? Same here, i wish for it to only play when player dies and Re-spawns or Fresh Spawn also is there by chance a way to put the .ogg server side so people dont have to download a bigger mission, already changed 1mb to 200kb .ogg but thought i ask Link to comment Share on other sites More sharing options...
Gr8 Posted November 27, 2014 Report Share Posted November 27, 2014 In your init.sqf Delete : _nul = [] execVM "playerspawn.sqf"; at the bottom add this waitUntil {!isNil "PVDZE_plr_LoginRecord"}; if (!isDedicated && (dayzPlayerLogin2 select 2)) then { if (dayzPlayerLogin2 select 2) then {execVM "playerspawn.sqf";}; }; This will make sure that the song only plays if he is a fresh spawn Link to comment Share on other sites More sharing options...
Endriex Posted April 4, 2015 Report Share Posted April 4, 2015 class CfgSounds { sounds[] = { carLock; introSong }; class carLock { name="carLock"; sound[]={sounds\carlock.ogg,0.9,1}; titles[] = {}; }; class introSong { name="introSong"; sound[]={introSong.ogg,0.9,1}; titles[] = {}; }; }; please repair I have the same error with this information: http://screenshooter.net/101974150/mwteghw The code above doesn't work. Somebody help ? :P If you need... There is my description.ext http://pastebin.com/qyhgcVdt Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now