DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ GetRandomLoadingBackground()

string GetRandomLoadingBackground ( )

Returns random loading background texture path.

См. определение в файле UIManager.c строка 251

252{
253 const string images[] = {"{655A1BF79F5B291}Gui/textures/loading_screens/loading_screen_1_co.edds", "{84BE5F7442BD4B}Gui/textures/loading_screens/loading_screen_2_co.edds"};
254 Math.Randomize(-1);
255 int index = Math.RandomInt(0, 100) % 2;
256 return images[index];
257}
Определения EnMath.c:7
static proto int Randomize(int seed)
Sets the seed for the random number generator.
static proto int RandomInt(int min, int max)
Returns a random int number between and min [inclusive] and max [exclusive].

Перекрестные ссылки Math::RandomInt() и Math::Randomize().

Используется в UIScriptedMenu::Init().