DayZ 1.30
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 строка 2177

2178 {
2179 string conPointName = GetDoorConditionPointFromSelection(pSeatSelection);
2180 if (conPointName.Length() > 0)
2181 {
2182 if ( MemoryPointExists(conPointName) )
2183 {
2184 vector conPointMS = GetMemoryPointPos(conPointName);
2185 vector conPointWS = ModelToWorld(conPointMS);
2186
2188 conPointWS[1] = 0;
2189 pFromPos[1] = 0;
2190
2191 if (vector.Distance(pFromPos, conPointWS) <= pDistance)
2192 {
2193 return true;
2194 }
2195 }
2196 }
2197
2198 return false;
2199 }
string GetDoorConditionPointFromSelection(string selection)
Определения CarScript.c:2141
proto native int Length()
Returns length of string.

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