Jump to content
Sign in to follow this  
JohnBravo

How to make skip time?

Recommended Posts

Hi All

i just wonder i need make skip time?

Like change to day time to night time in this game

or change times

i need script for this

Thanks

Share this post


Link to post
Share on other sites

http://community.bistudio.com/wiki/skipTime

The thing to notice about that is that it's a Local command, meaning everyone needs to run it or it'll be day for some and night for others. What I've done before for a day/night toggle is two triggers, two scripts and an addaction on the training commander.

Commander's addActions:

this addAction["Set Day","setday.sqf",[],1,false,true]; this addAction ["Set Night","setnight.sqf",[],1,false,true];

That gave the guy in charge two addAction to turn it to day or night. The scripts were as follows:

setDay.sqf:

nighttime = false;
publicVariable "nighttime";
sleep 1;
lighttime = true;
publicVariable "lighttime";

setNight.sqf:

lighttime = false;
publicVariable "lighttime";
sleep 1;
nighttime = true;
publicVariable "nighttime";

Basically the addActions just set or unset a variable that triggers were looking for. Looks like I was using setDate actually.

Trigger Condition of lighttime onAct of setDate [2009, 10, 6, 12, 0];

Trigger Condition of nighttime onAct of setDate [2009, 10, 6, 1, 0];

Edited by kylania

Share this post


Link to post
Share on other sites

Lol Operation Flashpoint {old game}

But it dont say what to put in...trigger? or init? or marker?

Share this post


Link to post
Share on other sites

Posted some more details about how I've done this before. skiptime would best be run from a trigger so it's run on all clients I suppose.

Share this post


Link to post
Share on other sites

There is a skip time module in A3 where you can set how many hours to skip. Just syinc it to trigger and when trigger goes on the time skip. (I think it runs to all clients)

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×