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

◆ GetRandomElement()

T array< Class T >::GetRandomElement ( )
inlineprivate

Returns a random element of array.

Возвращает
int Random element of array
Print( my_array.GetRandomElement() );
>> "Three"
proto void Print(void var)
Prints content of variable to console/log.

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

562 {
563 return Get(GetRandomIndex());
564 }
override float Get()
Определения PlayerStatBase.c:134
int GetRandomIndex()
Returns a random index of array. If Count is 0, return index is -1 .
Определения EnScript.c:542

Перекрестные ссылки Get() и GetRandomIndex().