Jump to content
Sign in to follow this  
muzashi1963

Load system(server) time at mission start

Recommended Posts

Hi all,

Is it possible to automatically load a DediServer System time at the start of a mission?

For example, I want to create a series of missions that I want to cycle automatically on a dedicated server, but need the initial mission to start it's local time at a specific time, say Server time + 12.

The rest of the missions then need to follow, but load the correct real time (based on the server time)

This way it does not matter how long the sequence of missions takes, the time will always be in step with Real time.

Thanks

[edit] sorry, posted in the wrong forum. should go in the mission scripting forum

Edited by muzashi1963

Share this post


Link to post
Share on other sites

short answer No.

but there is ways to do this.

you could make yourown app that past the time to the clippboard on the server.

then in the mission you copyfrom the clippboard and set the time..

no easy task but its possible with alot of effort.

Share this post


Link to post
Share on other sites

Think it will be possible... with "JayArma2lib".

Here is a snippet from the readme:

jayarma2lib_fnc_getlocaltime

Function:

INT ret = [] call jayarma2lib_fnc_getlocaltime;

Description:

Gets the local time of the system in which the command is ran. The time is provided in 24-Hour Metric Time (12.5 = 12:30).

Example:

_time = [] call jayarma2lib_fnc_getlocaltime;

if(_time == 1.0) then {

// its 1AM...

};

Didn't work with it myself... but I think you can give it a try.

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  

×