Jump to content
Sign in to follow this  
garbol87

JiP players cant see completed objectives

Recommended Posts

Well I have this problem whit my mission.

In init.sqf I have this line of code:

// wait for JIP playerss to sync

if ( (!isServer) && (player != player) ) then
{
waitUntil {player == player};
waitUntil {time > 10};
};

//once we have a player, execute the briefing script to set up tasks and diary entries

if !(isnull player) then {
null = [] execvm "briefing.sqf";
};

So the briefing synch whit JiP players but the problem is... That they dont see that for example first three objectives are completed. Its like they are not "downloading" the info about completed objectives. Anyone knows a script how to do it? Thanks in advance

Share this post


Link to post
Share on other sites

Ok I manage to make it to work like this:

puted this in init.sqf:

if (isNil "obj1") then {obj1 = false};

then I puted this under the same task (that is task1) in my briefing.sqf:

if (obj1) then {task1 setTaskState "Succeeded";};

And it works! Tested on dedicated server :)

Oh! I forgot! In the trigger as activation there needs to be:

publicVariable "obj1"

in order for it to work.

Edited by Garbol87

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  

×