Home   Help Search Login Register  

Author Topic: Day/Night Effects  (Read 1505 times)

0 Members and 1 Guest are viewing this topic.

Offline Blacknite

  • Members
  • *
  • Chiefs runs the navy!
Day/Night Effects
« on: 02 May 2010, 01:02:35 »
I figured out how to make it Day/Night, but only works in client, but doesnt make the effect for server.  How do I do that?

Offline Inkompetent

  • Members
  • *
Re: Day/Night Effects
« Reply #1 on: 02 May 2010, 02:44:02 »
You'll have to run the skipTime or setDate command on the server as well. Not sure if setDate is local or global though, but skipTime is local and thus only changed on the machine that runs the command.

One way to get around the troubles of broadcasting commands across the network could be createUnit a gameLogic with the skipTime command in its init line.

If you want to set the time at mission start you can simply process the setDate or skipTime in the init.sqf outside of any isServer or isPlayer checks.

Offline kju

  • Members
  • *
    • PvPScene - The ArmA II multiplayer community
Re: Day/Night Effects
« Reply #2 on: 02 May 2010, 07:26:15 »
setDate is global. Only execute it on the server.