Home   Help Search Login Register  

Author Topic: Setting the time  (Read 1915 times)

0 Members and 1 Guest are viewing this topic.

Offline CAS_Daniel

  • Members
  • *
  • Rifleman
Setting the time
« on: 22 Nov 2005, 21:37:23 »
Hi, I want to add the ability to change the time at the assign screen to my mission. I know where to do this - I opened a capture the flag mission and found it in the description file and the string table, but I don't understand how it works. Is there a simple way of doing this? Thanks, Daniel.  :)
Romeo 2.5 UK-based Light Infantry Platoon
forums.romeo25.com/

Offline KTottE

  • Former Staff
  • ****
Re:Setting the time
« Reply #1 on: 23 Nov 2005, 08:48:10 »
The way it works is you have your time in the PARAMS thing on your description.ext, I assume you know how to do this because I don't remember how ;)

Anyway, in the mission you set the time to 00:00. And in your init.sqs you put:
skipTime params1

Assuming that params1 is your "Select time" thing. So in the value-field of your params you write the number of hours to skip ahead from 00:00, and et voilá you've got changable time.
"Life is not a journey to the grave with the intention of arriving safely in a pretty and well preserved body, but rather to skid in broadside, thoroughly used up, totally worn out, and loudly proclaiming 'WOW What a Ride!'"

Offline Terox

  • Former Staff
  • ****
  • Follow the Sappers!
    • zeus-community.net
Re:Setting the time
« Reply #2 on: 23 Nov 2005, 21:01:07 »
DESCRIPTION.EXT
Quote
titleParam1 = "Time of Day";
valuesParam1[] = {5,12,18.3,0};
defValueParam1 = 5;
textsParam1[] = {"First Light","Midday","Last Light","Night"};

INIT.SQS
Quote
Skiptime param1


MISSION EDITOR
set the mission start time to midnight, 00:00hrs

if you decide to use another mission start time, then you will need to amend the param1 values
Zeus ARMA2 server IP = 77.74.193.124 :2302
Teamspeak IP = 77.74.193.123

Offline CAS_Daniel

  • Members
  • *
  • Rifleman
Re:Setting the time
« Reply #3 on: 24 Nov 2005, 18:57:25 »
Thanks a lot guys, I think I get it now.  :D

I'll lock this thread once I've tested it.  :)

EDIT: Works like a dream, thanks a lot!  ;D
« Last Edit: 24 Nov 2005, 19:19:18 by CAS_Daniel »
Romeo 2.5 UK-based Light Infantry Platoon
forums.romeo25.com/