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

◆ GetCenter()

vector IEntity::GetCenter ( )
inlineprivate

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

1362 {
1363 if ( MemoryPointExists("ce_center") )
1364 {
1365 //Print("CE_CENTER found");
1366 return ModelToWorld( GetMemoryPointPos("ce_center") );
1367 }
1368 else
1369 {
1370 //Print("CE_CENTER DOING A BAMBOOZLE => not found");
1371 return GetPosition() + Vector(0, 0.2, 0);
1372 }
1373 }
proto vector ModelToWorld(vector modelPos)
proto native vector GetPosition()
Retrieve position.
proto native bool MemoryPointExists(string memoryPoint)
proto native vector GetMemoryPointPos(string memoryPointName)
proto native vector Vector(float x, float y, float z)
Vector constructor from components.

Перекрестные ссылки GetMemoryPointPos(), GetPosition(), MemoryPointExists(), ModelToWorld() и Vector().