randomWeather2 Script
версия 0.90



Описание:
Скрипт позволяющий выбрать погоду на начало миссии.

Установка:
  • скопировать randomWeather2.sqf в папку с миссией
  • в init.sqf прописать
    Код:
    execVM "scripts\randomWeather2.sqf";
  • в description.ext прописать
    Код:
    class Params
    {
           // paramsArray[0]
              class initialWeatherParam {
              title = "Starting Weather";
              values[] = {0,1,2,3,4,5};
              texts[] = {"Clear","Overcast","Rain","Fog","Snow","Random"};
              default = 5;
           };
    };

Примечание по установке


If you have multiple parameters in your 'class Params' section and you do not put the initialWeatherParam as the first parameter in that section, you must update the rw2Param number (Line 63) in your randomWeather2.sqf file to match the correct number. Remember that 'selecting' values from the parameter section of your description.ext always starts at 0 for the first defined parameter and goes up from there. So if your initialWeatherParam parameter is first in the class Params section, rw2Param = 0; will work. If it is second in the list of class Params you'd need to change it to rw2Param = 1; and so on.
[свернуть]


Armaholic: http://www.armaholic.com/page.php?id=24614
BI forums: http://forums.bistudio.com/showthread.php?172817- ... -Script-Dynamic-Weather-For-A3