Jump to content
Sign in to follow this  
iNeo

Move to next wp at a certain hour

Recommended Posts

Hey,

Is there any way to have a unit proceed to next WP at a certain hour, e.g. 20:00?

Thanks,

iNeo

Share this post


Link to post
Share on other sites

Since you know what time the mission starts at you could simply set the wait time in the conditional of a waypoint. That would make the unit wait the set number of seconds before proceeding

Share this post


Link to post
Share on other sites

Condition

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">

daytime > 20

<span id='postcolor'>

for 20:00

daytime returns hours of day. So 17:30 would be 17.5 a.s.o.

Share this post


Link to post
Share on other sites

Mmm, but there's another issue making it impossible to use that method - I'm using the skiptime at another part of the mission, which I guess messes it up for me:

Say that I want a unit to move from A to B at 20:00. Mission starts at 12:00. At some time between 12:00 and 16:00, a skiptime command goes off and skips 1 hour...

Shit, what was I thinking, countdown thing in the trigger works for me anyway :-)

Need another thing though. In some mission in Red Hammer, they used a script to make the time pass faster. Everything was normal, except for the sky and the time: the clouds moved fast, and the sun crossed the sky faster, etc., but everything else was normal, you walked normal etc. DestroyerX asked for this earlier, more than half a year ago, but I can't find it no matter what I search for. If I remember correctly, RED knew the answer.

Thx,

iNeo

Share this post


Link to post
Share on other sites

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (bigpoppa @ Oct. 15 2002,20:42)</td></tr><tr><td id="QUOTE">Condition

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">

daytime > 20

<span id='postcolor'>

for 20wow.gif0

daytime returns hours of day. So 17:30 would be 17.5 a.s.o.<span id='postcolor'>

Thanks alot bigpoppa biggrin.gif

I guess this works for several days also, like daytime > 33 means next day at 9 am?

Alot appreciated smile.gif

iNeo

Share this post


Link to post
Share on other sites

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">

_time = _this select 0

_counter = 0

skiptime 7

_time = _time - 420

#start

skiptime (1/60)

~.005

_counter=_counter+1

?_counter<= _time:goto"start"

<span id='postcolor'>

[320] exec "nameofscript"

I am not sure if daytime > 33 will work, I expect it won't but when you try it letme know if it does.

RED

Share this post


Link to post
Share on other sites

Big thanks to you too, RED wink.gif

I'll let you know about daytime greater than 24 within 72 hrs.

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  

×