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

◆ CanReachSeatFromDoors()

override bool Car::CanReachSeatFromDoors ( string pSeatSelection,
vector pFromPos,
float pDistance = 1.0 )
inlineprotected

skip the height for now

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

2711 {
2712 string conPointName = GetDoorConditionPointFromSelection(pSeatSelection);
2713 if (conPointName.Length() > 0)
2714 {
2715 if ( MemoryPointExists(conPointName) )
2716 {
2717 vector conPointMS = GetMemoryPointPos(conPointName);
2718 vector conPointWS = ModelToWorld(conPointMS);
2719
2721 conPointWS[1] = 0;
2722 pFromPos[1] = 0;
2723
2724 if (vector.Distance(pFromPos, conPointWS) <= pDistance)
2725 {
2726 return true;
2727 }
2728 }
2729 }
2730
2731 return false;
2732 }
string GetDoorConditionPointFromSelection(string selection)
Определения CarScript.c:2674
proto native int Length()
Returns length of string.

Перекрестные ссылки vector::Distance(), CarScript::GetDoorConditionPointFromSelection() и string::Length().