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

◆ GetCenter()

vector IEntity::GetCenter ( )
inlineprivate

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

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