Home   Help Search Login Register  

Author Topic: current date... then back again (solved)  (Read 1108 times)

0 Members and 1 Guest are viewing this topic.

Offline loki72

  • Former Staff
  • ****
    • Loki's Nightmare
current date... then back again (solved)
« 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
« Last Edit: 04 Aug 2008, 13:34:51 by Planck »

Offline Spooner

  • Members
  • *
  • Mostly useless
    • Community Base Addons
Re: current date... then back again
« Reply #1 on: 03 Aug 2008, 17:42:13 »
Code: [Select]
_now = date;
setDate [1999,12,22,1,59];
sleep 60;
setDate _now;
[Arma 2] CBA: Community Base Addons
[Arma 1] SPON Core (including links to my other scripts)

Offline loki72

  • Former Staff
  • ****
    • Loki's Nightmare
Re: current date... then back again
« Reply #2 on: 04 Aug 2008, 04:20:37 »
 :D
works like a charm!

thanks spooner.