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

◆ GetClosestDoor()

Land_Underground_EntranceBase GetClosestDoor ( )

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

141 {
142 if (!m_Entrances)
143 {
144 return null;
145 }
146
147 float closestDst = float.MAX;
149 vector thisPos = GetPosition();
150
152 {
153 float dist = vector.DistanceSq(thisPos, obj.GetPosition());
154 if (dist < closestDst)
155 {
156 closestDst = dist;
157 closestObj = obj;
158 }
159 }
160
161 return closestObj;
162 }
enum ELEDState m_Entrances
static proto native float DistanceSq(vector v1, vector v2)
Returns the square distance between tips of two 3D vectors.
Определения EnConvert.c:106
class JsonUndergroundAreaTriggerData GetPosition
Определения UndergroundAreaLoader.c:9

Перекрестные ссылки vector::DistanceSq(), GetPosition и m_Entrances.

Используется в GetLinkedDoor().