Jump to content

Photo
- - - - -

Continous time of day.


  • Please log in to reply
7 replies to this topic
Thread Starter
Cougarxr7
Cougarxr7

    Corporal

  • Members
  • 97 posts

  • Joined: 01-July 2007

Posted 11 December 2011 - 11:36 #1

Thought this can be done.
Can't remmember where I saw the info of how to do it.
Like to have a mission stay at 12 noon at all times.
Thanks!
Love Arma, 1000 Servers, 50 Players!

daman3
daman3

    Sergeant

  • Members
  • 162 posts

  • Joined: 16-November 2010

Posted 11 December 2011 - 19:00 #2

Make a trigger, "activation -> everybody" and put it to countdown and 600 (for 600 seconds), activation repeatedly, then write this into the init:

skiptime -0.1

Thread Starter
Cougarxr7
Cougarxr7

    Corporal

  • Members
  • 97 posts

  • Joined: 01-July 2007

Posted 11 December 2011 - 22:57 #3

Thanks!
Will give that a try!
Update!
It worked perfectly on host and play.
However on dedicated it seemed to move 2.5 minutes then back 5 minutes.
here's the trigger code;
class Item142
   {
     position[]={10180.531250,139.994995,10155.835938};
     activationBy="ANY";
     repeating=1;
     timeoutMax=600.000000;
     age="UNKNOWN";
     expActiv="skiptime -0.1";
     class Effects
   {
   };

Edited by Cougarxr7, 12 December 2011 - 00:14.

Love Arma, 1000 Servers, 50 Players!

Thread Starter
Cougarxr7
Cougarxr7

    Corporal

  • Members
  • 97 posts

  • Joined: 01-July 2007

Posted 13 December 2011 - 03:08 #4

This comes close but it is not 100% continous 12 noon!
Thanks DaMaan3 for that info!
Anyone know of another way?
Love Arma, 1000 Servers, 50 Players!

celery
celery

    First Lieutenant

  • Members
  • 5084 posts

  • Joined: 09-April 2003

Posted 13 December 2011 - 03:38 #5

Trigger with condition: true
On act: noon=date;noon set [3,12];noon set [4,0];0=[] spawn {while {true} do {setDate noon;sleep 0.5}}

The sky won't warp and the time will always be the same.

Edited by Celery, 13 December 2011 - 16:03.


Thread Starter
Cougarxr7
Cougarxr7

    Corporal

  • Members
  • 97 posts

  • Joined: 01-July 2007

Posted 13 December 2011 - 15:36 #6

Celery, Thanks for the reply! I did what you said to do.

Trigger with condition: true
On act: noon=date;noon set [3,12];noon set [4,0];[] spawn {while {true} do {setDate noon;sleep 0.5}}

But, I got an error.
"type Script. expected Nothing"
May I ask this.
Would you make the trigger and copy it from the sqm file. Then post it like I did below under code?
class Item142
   {
     position[]={10180.531250,139.994995,10155.835938};
     activationBy="ANY";
     repeating=1;
     timeoutMax=600.000000;
     age="UNKNOWN";
     expActiv="skiptime -0.1";
     class Effects
   {
   };
This way there is no room for error.
Thanks!

Edited by Cougarxr7, 13 December 2011 - 16:06.

Love Arma, 1000 Servers, 50 Players!

celery
celery

    First Lieutenant

  • Members
  • 5084 posts

  • Joined: 09-April 2003

Posted 13 December 2011 - 16:03 #7

Oh right, put 0= in front of [] spawn

Thread Starter
Cougarxr7
Cougarxr7

    Corporal

  • Members
  • 97 posts

  • Joined: 01-July 2007

Posted 15 December 2011 - 04:21 #8

Celery, thanks! works great!
Love Arma, 1000 Servers, 50 Players!