OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Rubble_Maker on 10 Jul 2003, 21:03:40

Title: missionStart doesnt work
Post by: Rubble_Maker on 10 Jul 2003, 21:03:40
It doesn't return anything! Is the command buggy or am I doing something wrong? Also, what is it supposed to return - a string or a number?

thx
Title: Re:missionStart doesnt work
Post by: Zombie on 10 Jul 2003, 23:10:57
Does this answer your question?

missionStart

type of returned value:
Array

Description:
Return time when mission start in format [year,month,day,hour,minute,second]

version 1.8 required

Seems to me the usage would be something like:
titletext format["%1",missionstart]
Title: Re:missionStart doesnt work
Post by: Rubble_Maker on 11 Jul 2003, 11:50:29
Hehe thx, I know the OCR ;)

But when I try this code, it returns NOTHING.
Title: Re:missionStart doesnt work
Post by: Rubble_Maker on 11 Jul 2003, 19:29:46
Okay, more precisely it returns

[0,0,0,0,0,0,0,0]

(dunno if the number of zeros is correct, but all values in the array are zero). This is returned in both previewed and exported missions, so I assume the command doesn't work (bug or obsolete).
Title: Re:missionStart doesnt work
Post by: Spinor on 15 Jul 2003, 12:47:11
AFAIK, the command works only in MP and is supposed
to return the the real time (i.e. not the game time)
the mission started.