DayZ 1.28
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 строка 2567

2568 {
2569 string conPointName = GetDoorConditionPointFromSelection(pSeatSelection);
2570 if (conPointName.Length() > 0)
2571 {
2572 if ( MemoryPointExists(conPointName) )
2573 {
2574 vector conPointMS = GetMemoryPointPos(conPointName);
2575 vector conPointWS = ModelToWorld(conPointMS);
2576
2578 conPointWS[1] = 0;
2579 pFromPos[1] = 0;
2580
2581 if (vector.Distance(pFromPos, conPointWS) <= pDistance)
2582 {
2583 return true;
2584 }
2585 }
2586 }
2587
2588 return false;
2589 }
string GetDoorConditionPointFromSelection(string selection)
Определения CarScript.c:2531
proto native int Length()
Returns length of string.

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