Jump to content
Sign in to follow this  
icfhoop

Choosing time of day.

Recommended Posts

Hello all, I was wondering, how do I let the player choose what the time will be for the map (Night, day, or overcast?)

Here is my description file so far .

///////////////////////////////////////////////////////////

// Armed Assault Description File

// Created with ArmA Edit - Version 1.2.7000

///////////////////////////////////////////////////////////

showCompass = 0;

showGPS = 0;

showWatch = 0;

respawn = "BASE";

respawnDelay = 5;

Share this post


Link to post
Share on other sites

Here is how you can choose the time:

Description.ext

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">

titleParam1 = "Day Time:";

valuesParam1[] = {1, 2, 3, 4};

defValueParam1 = 1;

textsParam1[] = {"Morning", "Day", "Evening", "Night"};

Init.sqf

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">

if (Param1 == 1) then {SkipTime 5};

if (Param1 == 2) then {SkipTime 17};

if (Param1 == 3) then {SkipTime .5};

if (Param1 == 4) then {SkipTime 12.25};

Thats it smile_o.gif

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  

×