Jump to content
Sign in to follow this  
galevsky

[MP] stop the mission for all clients at the same time

Recommended Posts

Hi all,

for PvP purpose, I need to stop the mission for all clients at the same time, and display a score-board.

I think I need to execute a function like the one below at the end of the duration (2 hours), on all clients due to the call to the UI resources call:

ofcra_fnc_clients_side_mission_end = {
// Open scoreboard
cutRsc ["ScoreBoard","PLAIN"];
};

So, I want to use a trigger to plan the ofcra_fnc_clients_side_mission_end call on each client when the mission will time out:

It looks like I cannot use the serverTime, but I can consider the in-game current time thanks to daytime on the client side when joining, then compute the remaining-time-to-play value, and use it in my trigger.

My question is about daytime : wiki says

Returns the current local ingame time in hours.

That means that clients don't get the same in-game time ? Sounds weird....

Maybe I miss the right way to do what I want to ? Any advise ?

Thank you for your help :)

Share this post


Link to post
Share on other sites
[[],"ofcra_fnc_clients_side_mission_end",true,false,false] call BIS_fnc_MP;

Edited by JShock

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  

×