Jump to content
hekut146

how exec script when arma start (i show menu)

Recommended Posts

I try:

class RscStandardDisplay;
 class RscDisplayMain : RscStandardDisplay {
  onload = "[] execVM '\z\addons\hapodha9i_coji9ihka_main\init_sound.sqf'";
 };
};
//not reaction (not work)
and try:
class Extended_PreInit_EventHandlers {
 class DayZ_HC {
  clientInit = "[] execVM '\z\addons\hapodha9i_coji9ihka_main\init_sound.sqf'";
 };
};
//work but only when start mission
p.s. i want add music to main menu

Share this post


Link to post
Share on other sites

i found work path but sound don't hear:

class RscStandardDisplay;
class RscDisplayMain : RscStandardDisplay {
 onLoad = "call compile preprocessFileLineNumbers '\z\addons\hapodha9i_coji9ihka_main\init.sqf'";
};

i try (in menu don't hear):

playMusic "ambient_music_29";
playSound "battle_music_sound_0";

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×