top

Day night parameter arma3

 
Post new topic   Reply to topic    [LOL] ArmA OFP Site Forum Index -> ArmA 3 Help
View previous topic :: View next topic  
Author Message
KillerBee
Spam King


Joined: 18 May 2004
Posts: 5896
Location: From the land of weed and hoes

PostPosted: Sun May 08, 2016 11:44 am    Post subject: Day night parameter arma3 Reply with quote

I want to make a parameter in the mission and I have tried a bunch of ways but all fail.
This is what I use !

In the desription.ext



Code:
// Params

class Params
{
   class TimeOfDay
{
//paramsArray[0]
title = "Time of Day:";
values[] = {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23};
texts[] = {"0000","0100","0200","0300","0400","0500","0600","0700","0800","0900","1000","1100","1200","1300","1400","1500","1600","1700","1800","1900","2000","2100","2200","2300"};
default = 12;
};

};


In the init I have the following.

Code:

if isServer then {definedTime = (paramsArray select 0)};
if isServer then {skipTime definedTime;};


I had the time on the mission 00:00.

I do have the options for the time but I have and stay night also when I changed the mission to 12:00 it stay light and it doesn't change to night ?

I also had a look too Jgaz his mission and used that but I had the same result !

Not sure what I'm missing ?
_________________


Heroes don't wear capes, they wear dogtags !
Back to top
View user's profile Send private message Visit poster's website
RueLight
Average Poster
Average Poster


Joined: 18 Jan 2007
Posts: 878
Location: Germany, Siegen

PostPosted: Sun May 08, 2016 2:51 pm    Post subject: Reply with quote

i used this in my mission seep

DESCRIPTION.EXT
    class Params
    {
    class DayTime
    {
    //paramsArray[0]
    title = "Time of Assault:";
    values[] = {0,9};
    texts[] = {"Evening","Night"};
    default = 0;
    };

    };

then add a gamelogic in your mission with this in the

init line
    skiptime (paramsArray select 0)
Back to top
View user's profile Send private message
KillerBee
Spam King


Joined: 18 May 2004
Posts: 5896
Location: From the land of weed and hoes

PostPosted: Sun May 08, 2016 4:29 pm    Post subject: Reply with quote

Yah weird as I tried J his version and yours but non seems to work ?
Hmm it might be broke you have tested the time skipping on your missions lately ?
Bis might have broken it ? Rolling Eyes
_________________


Heroes don't wear capes, they wear dogtags !
Back to top
View user's profile Send private message Visit poster's website
RueLight
Average Poster
Average Poster


Joined: 18 Jan 2007
Posts: 878
Location: Germany, Siegen

PostPosted: Sun May 08, 2016 5:18 pm    Post subject: Reply with quote

my params work -> seep picture at night

did u test it on multiplayer?!
Back to top
View user's profile Send private message
KillerBee
Spam King


Joined: 18 May 2004
Posts: 5896
Location: From the land of weed and hoes

PostPosted: Tue May 10, 2016 5:30 am    Post subject: Reply with quote

Yes and even cleaned out my cache Crying or Very sad
Don't get errors in the disciption.ext so that is fine .
And the test in the init and that doesn't eigher give errors Rolling Eyes

Question tough is this new way tell the real time you want like 11:00 is 11:00 or is this like the past 11 hrs later than the time in the mission was set ?
Normally I did put mine time on 00:00 and started 12 hr later that was the afternoon .

How did you do that ?
_________________


Heroes don't wear capes, they wear dogtags !
Back to top
View user's profile Send private message Visit poster's website
RueLight
Average Poster
Average Poster


Joined: 18 Jan 2007
Posts: 878
Location: Germany, Siegen

PostPosted: Wed May 11, 2016 5:41 pm    Post subject: Reply with quote

check my mission seep. it works for me.

perhaps remove your disciption.ext from missionfolder, save mission and put it back in :/
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    [LOL] ArmA OFP Site Forum Index -> ArmA 3 Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group