OFPEC Forum

Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: loki72 on 03 Aug 2008, 16:14:56

Title: current date... then back again (solved)
Post by: loki72 on 03 Aug 2008, 16:14:56
greetings,

curious,

if i have a script running in the background of my machine.. connected to any other map.. how do i:

1. check to see, and store the current missions date/time?
2. and if, through another script, i change the  current missions date/time to a different date/time (local) by..
Code: [Select]
setDate [1999,12,22,1,59];how do i set the (local) date/time back to the original missions date/time when i am finished looking at the full moon?

maybe this is a MP question...

thx
Title: Re: current date... then back again
Post by: Spooner on 03 Aug 2008, 17:42:13
Code: [Select]
_now = date;
setDate [1999,12,22,1,59];
sleep 60;
setDate _now;
Title: Re: current date... then back again
Post by: loki72 on 04 Aug 2008, 04:20:37
 :D
works like a charm!

thanks spooner.