Jump to content
Jilly007

Change mission parameter on resume

Recommended Posts

I am starting a multiplayer server using "Host Server".

On first startup of my server I can edit the mission parameters I specified in my description.ext e.g.:

class Params
{
	class TimeOfMission
	{
		title = "Time of day";
		values[] = {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23};
		texts[] = {"0:00","1:00","2:00","3:00","4:00","5:00","6:00 - Dawn","7:00","8:00","9:00","10:00","11:00","12:00","13:00","14:00","15:00","16:00","17:00 - Dusk","18:00","19:00","20:00","21:00","22:00","23:00"};
		default = 6;
		function = "BIS_fnc_paramDaytime";
	};
};

When I start playing, the mission parameter works as expected and sets the time of day.

Then I save and exit my server.

When I host the server again later and click on resume, I can change the mission parameter again. However any change I make has no effect on the game. The time of day will resume exactly at the time I shut down the server.

How can I make changes in mission parameters take effect after resuming a previously saved server?

Thank you so much for any help.

Share this post


Link to post
Share on other sites
14 hours ago, Jilly007 said:

resuming a previously saved server?

 

I believe this is the crux right there, Resume essentially loads a save, so I imagine you can try to use the Loaded eventhandler to reapply the time of day.

 

 

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

×