Jump to content
Sign in to follow this  
cougarxr7

get time

Recommended Posts

I've searched, tried alot of commands,

ex: _daytime = daytime

That did not worked it returned the value of what is in the mission.sqm.

However I am not able to get the actual time of the game.

I don't mean the start time.

What I am trying to get is the time in the game as it is on the watch.

Can some help me?

Thanks!

Share this post


Link to post
Share on other sites

Thanks for the reply.

That was one of the commands I tried. However it seems to me that array return is the start time of the mission in the mission.sqm.

I included a hint for date select 3 and it showed the mission start time, yet the default start params overrode it and yet it did not return that override.

Here is a pic of that. You will see the hint showing 1:00<mission.sqm and yet the watch shows 6:00<discription.ext param default start time

http://i5.photobucket.com/albums/y188/Cougarxrr/asanarray.jpg

Why 2 different times, its just a test. Besides the override would happen before the hint came up from the array yet the watch showed the actual in game time.

So I am still at a lost of how to get the time in game at the time it is, as it shows up on the watch, and not the start time.

I'll keep trying!

Thanks!

Share this post


Link to post
Share on other sites

while {1 == 1} do

{

sleep 10;

hint format["%1 %2",date select 3,date select 4];

skiptime 5;

};

this will show you the time then skip forward time 5 hours and show you the time again ect

Michael

Share this post


Link to post
Share on other sites

Zone, thanks for replying!

However I relize I was not clear as to what I am trying to do.

I am trying to access the time var. So I can set it in an if statement, not just see it.

Lets say this returns actual in game time.

Eample: _wristwatch =  time

  if (_time > i) or (_time < x) then

      true

  else

      false;

That is what I am trying to find. How do you access the actual in game time. You would think something like "GetTime"

would work for what I am trying to do.

I hope I'm more clear now.

Thanks!

Share this post


Link to post
Share on other sites

is this what your looking for

// Check if it's dark, it fire flares instead of popin smoke (between 4.30-19.00)

if ((daytime > 4.5) and (daytime < 19)) then {_DayLight = true} else {_DayLight = true};

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  

×