Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×
gc8

End mission question

Recommended Posts

Hi

I'm using BIS_fnc_endMission and remoteExecCall to end mission on all clients but the wiki says that BIS_fnc_endMissionServer should be used in MP. So my question is do I call BIS_fnc_endMission on clients and BIS_fnc_endMissionServer on server? Or am I supposed to only call BIS_fnc_endMissionServer and that's it?

 

thx

Share this post


Link to post
Share on other sites
32 minutes ago, gc8 said:

call BIS_fnc_endMissionServer

 

This^

 

Based on what I know.

Share this post


Link to post
Share on other sites

@major-stiffy Yes that would work. But how do I show custom end screen for winners/losers like BIS_fnc_endMission does?

Share this post


Link to post
Share on other sites

Yeah I read the wiki but nowhere says how to make custom end for BIS_fnc_endMissionServer. 

Share this post


Link to post
Share on other sites

I'm still a bit lost on this one. Does anyone know what kind of mission end calls should I make for TvT mission where other team wins and other loses?

 

Share this post


Link to post
Share on other sites

@pierremgi Yes I know but my question is what functions should I call?

 

Here's my debrief classes:

 

class CfgDebriefing
{
	class defeat
	{
		title = "Defeat!";
		subtitle = "All towns lost";
		description = "Your team lost all it's towns";
		//pictureBackground = "";
		//picture = "KIA";
		//pictureColor[] = {0.6,0.1,0.2,1};
	};
	
	class victory
	{
		title = "Victory!";
		subtitle = "All towns taken";
		description = "Your team took the towns from enemy";
	};
};

 

I have the condition code too but I won't post it here to keep the post short.

 

now I could end the mission like this for all players:

 

"victory" remoteExecCall ["BIS_fnc_endMission", winnerside]; // winnerside is side that won

 

 

But is that sufficient?

 

Share this post


Link to post
Share on other sites

This should be OK (sorry, I can't test it so far). On the other hand, you have the  "SideScore" call BIS_fnc_endMissionServer;

 

I'm not sure with that, but the cfgDebriefing and the cfgDebriefingSections  worth for both endMission and endMissionServer  functions. If not, your approach seems OK.

 

Share this post


Link to post
Share on other sites

Well I looked into the code of BIS_fnc_endMissionServer and it seems to just call BIS_fnc_endMission on all clients. So I was on the right track with my solution.

Share this post


Link to post
Share on other sites

×