gc8 981 Posted October 30, 2018 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
major-stiffy 282 Posted October 30, 2018 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
gc8 981 Posted October 30, 2018 @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
major-stiffy 282 Posted October 30, 2018 "SideScore" call BIS_fnc_endMissionServer; ///??? https://community.bistudio.com/wiki/BIS_fnc_endMissionServer Never tested it. Share this post Link to post Share on other sites
gc8 981 Posted October 30, 2018 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
gc8 981 Posted November 15, 2018 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 4944 Posted November 15, 2018 You need to define what are the conditions for winning/losing the game, then add some classes in the description.ext. I didn't test it, sorry. Share this post Link to post Share on other sites
gc8 981 Posted November 15, 2018 @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
pierremgi 4944 Posted November 15, 2018 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
gc8 981 Posted November 16, 2018 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