Home   Help Search Login Register  

Author Topic: OFP date.  (Read 720 times)

0 Members and 1 Guest are viewing this topic.

Ace Productions

  • Guest
OFP date.
« on: 03 Sep 2004, 10:58:46 »
Hi once more,

Does anybody know if there is a way to obtain the date during a mission via a script?

i.e. 15th September.

Offline h-

  • OFPEC Site
  • Administrator
  • *****
  • Formerly HateR_Kint
    • OFPEC
Re:OFP date.
« Reply #1 on: 03 Sep 2004, 14:32:29 »
Well, the only thing that comes to mind is missionStart

'Return time when mission start in format [year, month, day, hour, minute, second]'
-ComRef
Project MCAR   ---   Northern Fronts   ---   Emitter 3Ditor
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.

Offline The-Architect

  • Former Staff
  • ****
  • Bite my shiny metal...
    • Bob's Un-official Flashpoint Page
Re:OFP date.
« Reply #2 on: 03 Sep 2004, 17:46:50 »
can't you write it in a .sqs so it appears when you want it to?
James Andrew Wilkinson 1977 - 2005 R.I.P.
"If it ain't the friggin' incoming it's the friggin' outgoing. Only difference is who gets the friggin' grease, and that ain't no friggin' difference at all."

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:OFP date.
« Reply #3 on: 03 Sep 2004, 18:15:24 »
You know what the date was at the start of the mission, and the reserved variable time records the time elapsed since then.    

The only problem is that time has a bug in that it resets after a retry (I believe).    

Alternatively you could use a very slow loop and a daytime command to record the passing of the days.
Plenty of reviewed ArmA missions for you to play

Offline THobson

  • OFPEC Patron
  • Former Staff
  • ****
Re:OFP date.
« Reply #4 on: 03 Sep 2004, 20:33:06 »
Daytime will give the time in hours as you would see if you look at the watch in the mission.  Perhaps you could increment a date counter everytime it clicks over at midnight?  That combined with MisisonStart might enable you to do what you want

DBR_ONIX

  • Guest
Re:OFP date.
« Reply #5 on: 04 Sep 2004, 13:59:32 »
Doesn't the missionstart give the real time when it starts (Like when your computer clock is)
???
- Ben

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:OFP date.
« Reply #6 on: 04 Sep 2004, 14:59:07 »
mebe u can tell us y u need dis ? mebe itll make easier 2 help ya ? (prooly not... but still :P)

LCD (going to do some capoeira) OUT
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

Offline h-

  • OFPEC Site
  • Administrator
  • *****
  • Formerly HateR_Kint
    • OFPEC
Re:OFP date.
« Reply #7 on: 04 Sep 2004, 15:03:27 »
For some reason (just tested it) I can get it only to return an array of 0...
[0,0,0,0,0]...

Dunno why...
Project MCAR   ---   Northern Fronts   ---   Emitter 3Ditor
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:OFP date.
« Reply #8 on: 04 Sep 2004, 15:20:36 »
didnt the mision make decide whats the date at the misions start ? :P

so the best solution is prooly creating scripts the counts from there... it wont b hard :P ;)

LCD OUT
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

Ace Productions

  • Guest
Re:OFP date.
« Reply #9 on: 05 Sep 2004, 01:01:24 »
Thanks everybody for your replies.

I'm working on an AI improvement script that takes into consideration the climatic conditions, i.e. hot or cold, so I was looking for a way to get at least the month so I can estimate the temperature.  8)


Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:OFP date.
« Reply #10 on: 05 Sep 2004, 01:04:54 »
mebe u can ask the player 2 define them ? :P

also remember to take the weather ;) if u already doing that :P
(ill check if i can help in both wayz)

LCD OUT
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

Ace Productions

  • Guest
Re:OFP date.
« Reply #11 on: 05 Sep 2004, 01:33:30 »
Thanks LCD.

I'll keep experimenting until you find something.

Offline Sui

  • Former Staff
  • ****
    • OFPEC
Re:OFP date.
« Reply #12 on: 05 Sep 2004, 05:23:36 »
For some reason (just tested it) I can get it only to return an array of 0...
[0,0,0,0,0]...

Dunno why...

I have a feeling that missionstart only works properly in MP... I could be wrong though ;)

Offline h-

  • OFPEC Site
  • Administrator
  • *****
  • Formerly HateR_Kint
    • OFPEC
Re:OFP date.
« Reply #13 on: 05 Sep 2004, 08:54:56 »
Quote
I have a feeling that missionstart only works properly in MP... I could be wrong though
You may be right... I thought of the same... ;)
Project MCAR   ---   Northern Fronts   ---   Emitter 3Ditor
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.