Jump to content
Sign in to follow this  
mr-blizzard

init.sqf executed for jip

Recommended Posts

Today I did some testing with the init.sqf, and for what ever reason the JIP (join in progress players) init.sqf is executed for them as well as the mission startup. I thought that the init.sqf is only executed when the mission is first started. if that isnt the case how would i go about fixing it?

like this?

if (isDedicated) then {
   [] spawn fnc_Cache_exec;
};

Share this post


Link to post
Share on other sites
I thought that the init.sqf is only executed when the mission is first started.

Well, init.sqf is run when the "mission is first started"... for the JIP. ;)

To "fix" it, you take it into account when scripting.

Share this post


Link to post
Share on other sites

So far I understand a simple if (isServer) then {}; should solve the problem. Otherwise you would give us more detailed information of what you want to happen if a player joins and what not.

Share this post


Link to post
Share on other sites

init.sqf is always run by every player when they join, and on the server once when the mission starts

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  

×