Jump to content
jakeplissken

Possible to set rotation of objects according to hour and minute.

Recommended Posts

With the new scripting command systemTime added in DEV build, it is possible to set the rotation of objects according to the current time. This could show the time that the mission started.

 

private _currentTime = systemTime;
private _value1 = _currentTime select 4;
private _value2 = _currentTime select 3;

log1 setDir _value1;
log2 setDir _value2;

I used the code above to set the rotation of logs according to the minute and hour. This would show the time the server started the mission. I am not sure how useful this is, but I thought it was pretty interesting.

 

This code starts my mission using the actual server time, this is very useful.

 

if (isServer) then {
	waitUntil {time > 0};
	[missionStart select [0,5]] remoteExec ["setDate"];
};

 

  • Haha 1

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

×