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

◆ GetCenter()

vector IEntity::GetCenter ( )
inlineprivate

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

1358 {
1359 if ( MemoryPointExists("ce_center") )
1360 {
1361 //Print("CE_CENTER found");
1362 return ModelToWorld( GetMemoryPointPos("ce_center") );
1363 }
1364 else
1365 {
1366 //Print("CE_CENTER DOING A BAMBOOZLE => not found");
1367 return GetPosition() + Vector(0, 0.2, 0);
1368 }
1369 }
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().