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

◆ CanReachSeatFromDoors()

override bool CanReachSeatFromDoors ( string pSeatSelection,
vector pFromPos,
float pDistance = 1.0 )
protected

skip the height for now

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

2423 {
2424 string conPointName = GetDoorConditionPointFromSelection(pSeatSelection);
2425 if (conPointName.Length() > 0)
2426 {
2427 if ( MemoryPointExists(conPointName) )
2428 {
2429 vector conPointMS = GetMemoryPointPos(conPointName);
2430 vector conPointWS = ModelToWorld(conPointMS);
2431
2433 conPointWS[1] = 0;
2434 pFromPos[1] = 0;
2435
2436 if (vector.Distance(pFromPos, conPointWS) <= pDistance)
2437 {
2438 return true;
2439 }
2440 }
2441 }
2442
2443 return false;
2444 }
string GetDoorConditionPointFromSelection(string selection)
Определения CarScript.c:2386
static proto native float Distance(vector v1, vector v2)
Returns the distance between tips of two 3D vectors.
Определения EnConvert.c:106
proto native int Length()
Returns length of string.

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