Jump to content

Recommended Posts

 Hi Guys,

I am trying to make a small mod based on sqf files.
I understood that I need to use config.cpp  with class CfgFunctions to call the first script.
My problem is the first script which initializes everything need to be executed on each machine at mission start including server but later on also if someone joins with JIP it should be executed for him on his machine too.

 

How can I achieve this ?
Thanks in advance

Share this post


Link to post
Share on other sites

Hello,

 

You can make use of initPlayerLocal.sqf  for client (regular & JIP) and initServer.sqf for server in mission root (https://community.bistudio.com/wiki/Event_Scripts)

 

Inside these files you can run scripts from your mod.

 

If you want to go full mod, you gotta use CfgMissions (https://community.bistudio.com/wiki/CfgMissions) & use the same initialization files stated above.

Share this post


Link to post
Share on other sites

Hello, 

I'm in a similar situation rn.

What do you mean with "use CfgMissions"?

Does that mean I need to put my missions in the addon to get a script running?

No way to run something in a mission not from me?

 

Any help appreciated!

 

-Dj

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

×