Jump to content
Sign in to follow this  
thelegendarykhan

init.sqf & description.sqf 2 questions from noob

Recommended Posts

Hello.

My 2 questions are:

1. In init.sqf, sometimes I want to add more than 1 script of different mods. Following is an example of one script:

class Extended_PreInit_EventHandlers
{
class outlw_magRepack
{
	clientInit = "outlw_magRepack_Var = [] execVM 'outlw_magRepack\MagRepack_init.sqf'";
	disableModuload = true;
};
};

So I need to ask, if I have to add another code in init.sqf, how should I mention it? Please copy past this script and repost the duplication assuming that is a second script in "bold" so that I may discern. I am confused at the use of ";" , and "{}". Thank you.

However, in description.ext I believe I can add as many scripts just by separating them with ";" and beginning from the line below?

2. I am a sucker for self-made SP missions, so if I have codes of more than 1 script in my init.sqf, do they all start even after loading the game once both Steam and ARMA 3 have been totally restarted ? Or do I have to use scripts like Moduload?

Thank you.

P.s.: Please refrain from technical terms. Just plain layman english.

Share this post


Link to post
Share on other sites

assuming that your second mod also asks you to include another string into the Extended_PreInit_EventHandlers

class Extended_PreInit_EventHandlers
{
class outlw_magRepack
{
	clientInit = "outlw_magRepack_Var = [] execVM 'outlw_magRepack\MagRepack_init.sqf'";
	disableModuload = true;
};
[color="#FF0000"]        class My_Second_Mod_class_name
       {
               codeCodeCode = "blahblahblah";
               anotherCommandWithStiffInIt = false;
       };[/color]
};

Share this post


Link to post
Share on other sites

@BadHabitz Thanks a ton mate. Thumbs up. :cool:

But what about my second question:

"2. I am a sucker for self-made SP missions, so if I have codes of more than 1 script in my init.sqf, do they all start even after loading the game once both Steam and ARMA 3 have been totally restarted ? Or do I have to use mods like Moduload?"

Thank you.

Share this post


Link to post
Share on other sites

Not sure I understand, which is why I didn't answer. You should be fine without using anything else.

Share this post


Link to post
Share on other sites

To answer your second question: everything in the init.sqf will be executed, in sequence, at the beginning of the mission. Using ModULoad will definitely help re-initialize things that break when loading a single-player save, but you probably would not need it.

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
Sign in to follow this  

×