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

◆ Slice()

array< T > array< Class T >::Slice ( int from,
int to )
inlineprivate

Returns an array with elements from range given on input.

Возвращает
array<T> new array with sliced elements of source array
array<int> arr1 = {0,1,2,3};
array<int> output = {};
output = arr1.Slice(1, 2);
>> {1, 2}
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
proto void Print(void var)
Prints content of variable to console/log.

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

721 {
722 array<T> result = new array<T>();
723 for (int i = from; i <= to && i < Count(); ++i)
724 result.Insert(Get(i));
725
726 return result;
727 }
proto T Get(int n)
proto native int Count()

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