0 Members and 1 Guest are viewing this topic.
; SET SCENARIO CONDITIONS; Using the value of "Param1", set by the admin using a slider in the scenario set-up screen),; the following code sets the time and weather conditions for the scenario.?(Param1 == 1) : goto "DuskClear"?(Param1 == 2) : goto "NightClear"?(Param1 == 3) : goto "DawnClear"?(Param1 == 4) : goto "NoonClear"?(Param1 == 5) : goto "DuskOvercast"?(Param1 == 6) : goto "NightOvercast"?(Param1 == 7) : goto "DawnOvercast"?(Param1 == : goto "NoonOvercast"?(Param1 == 9) : goto "DuskStorm"?(Param1 == 10) : goto "NightStorm"?(Param1 == 11) : goto "DawnStorm"?(Param1 == 12) : goto "NoonStorm"?(Param1 == 13) : goto "DuskMist"?(Param1 == 14) : goto "NightMist"?(Param1 == 15) : goto "DawnMist"?(Param1 == 16) : goto "NoonMist"?(Param1 == 17) : goto "DuskFog"?(Param1 == 18) : goto "NightFog"?(Param1 == 19) : goto "DawnFog"?(Param1 == 20) : goto "NoonFog"#DuskClearskiptime 17.50 setFog 00 setOvercast 0goto "ConditionsSet"#NightClearskiptime 00 setFog 00 setOvercast 0goto "ConditionsSet"#DawnClearskiptime 6.250 setFog 00 setOvercast 0goto "ConditionsSet"#NoonClearskiptime 120 setFog 00 setOvercast 0goto "ConditionsSet"#DuskOvercastskiptime 17.50 setFog 0.00 setOvercast 0.7goto "ConditionsSet"#NightOvercastskiptime 00 setFog 0.00 setOvercast 0.7goto "ConditionsSet"#DawnOvercastskiptime 6.250 setFog 0.00 setOvercast 0.7goto "ConditionsSet"#NoonOvercastskiptime 120 setFog 0.00 setOvercast 0.7goto "ConditionsSet"#DuskStormskiptime 17.50 setFog 0.40 setOvercast 1.0goto "ConditionsSet"#NightStormskiptime 00 setFog 0.40 setOvercast 1.0goto "ConditionsSet"#DawnStormskiptime 6.250 setFog 0.40 setOvercast 1.0goto "ConditionsSet"#NoonStormskiptime 120 setFog 0.40 setOvercast 1.0goto "ConditionsSet"#DuskMistskiptime 17.50 setFog 0.700 setOvercast 0.7goto "ConditionsSet"#NightMistskiptime 00 setFog 0.700 setOvercast 0.7goto "ConditionsSet"#DawnMistskiptime 6.250 setFog 0.700 setOvercast 0.7goto "ConditionsSet"#NoonMistskiptime 120 setFog 0.700 setOvercast 0.7goto "ConditionsSet"#DuskFogskiptime 17.50 setFog 0.970 setOvercast 0.7goto "ConditionsSet"#NightFogskiptime 00 setFog 0.970 setOvercast 0.7goto "ConditionsSet"#DawnFogskiptime 6.250 setFog 0.970 setOvercast 0.7goto "ConditionsSet"#NoonFogskiptime 120 setFog 0.970 setOvercast 0.7goto "ConditionsSet"#ConditionsSet;==============================================================================================
// CONDITIONS SELECTOR// The following code creates a slider in the scenario set-up screen that allows the admin to// determine the time and weather conditions for the scenario. The selector sets the value of// "Param1", which is used by a corresponding segment of code in the "init.sqs" file.titleParam1 = "Conditions:"; valuesParam1[] = {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20};defValueParam1 = 3; textsParam1[] = {"Dusk - Clear","Night - Clear","Dawn - Clear","Noon - Clear","Dusk - Overcast","Night - Overcast","Dawn - Overcast","Noon - Overcast","Dusk - Storm","Night - Storm","Dawn - Storm","Noon - Storm","Dusk - Mist","Night - Mist","Dawn - Mist","Noon - Mist","Dusk - Fog","Night - Fog","Dawn - Fog","Noon - Fog"};//