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

◆ OrderedAltitudeNumbersPosition()

static array< int > OrderedAltitudeNumbersPosition ( EntityAI pEntity)
staticprotected

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

166 {
167 array<int> altArray = new array<int>();
168 float altF = pEntity.GetPosition()[1];
169 int altI = Math.Round(altF);
170 string altString = altI.ToStringLen(DISPLAY_ALT_MAX_CHARS_COUNT);
171
172 for (int i = 0; i < altString.Length(); ++i)
173 {
174 altArray.Insert(altString.Get(i).ToInt());
175 }
176
177 return altArray;
178 }
static const int DISPLAY_ALT_MAX_CHARS_COUNT
Определения MapNavigationBehaviour.c:15
Определения EnMath.c:7
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
static proto float Round(float f)
Returns mathematical round of value.
proto native int Length()
Returns length of string.
proto string Get(int index)
Gets n-th character from string.
proto native int ToInt()
Converts string to integer.

Перекрестные ссылки DISPLAY_ALT_MAX_CHARS_COUNT, string::Get(), string::Length(), Math::Round() и string::ToInt().