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

◆ IsPointInPlayerRestrictedAreaClosest()

static bool CfgPlayerRestrictedAreaHandler::IsPointInPlayerRestrictedAreaClosest ( vector point,
out PlayerRestrictedAreaInstance hitArea )
inlinestaticprivate

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

89 {
90 if (!IsInitialized())
91 return false;
92
93 PlayerRestrictedAreaInstance area = GetClosestArea(point);
94 if (area && IsCylinderInAreaBox(area,point) || IsPointInAreaPolygon(area,point))
95 {
96 hitArea = area;
97 return true;
98 }
99 return false;
100 }
static PlayerRestrictedAreaInstance GetClosestArea(vector point)
static bool IsCylinderInAreaBox(notnull PlayerRestrictedAreaInstance area, vector point, float cylinderRadius=0.25, float cylinderHeight=1)
default cylinder values sufficient for player detection
static bool IsPointInAreaPolygon(notnull PlayerRestrictedAreaInstance area, vector point)

Перекрестные ссылки GetClosestArea(), IsCylinderInAreaBox(), IsInitialized() и IsPointInAreaPolygon().