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

◆ GetPlayerHeadPosition()

static vector GetPlayerHeadPosition ( notnull PlayerBase player)
staticprotected

Returns approximated position of head in WS which takes the player's stance into account Preferred method over GetHeadBonePos variant which can be expensive on perf.

Аргументы
playerReference to player entity

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

777 {
778 float headHeight = GetPlayerHeadHeight(player);
779 vector playerPosition = player.GetPosition();
780 vector headPosition = Vector(
781 playerPosition[0],
782 playerPosition[1] + headHeight,
783 playerPosition[2],
784 );
785
786 return headPosition;
787 }
static float GetPlayerHeadHeight(notnull PlayerBase player)
Returns approximated height(from terrain) of head in WS which takes the player's stance into account ...
Определения MiscGameplayFunctions.c:759
Определения EnConvert.c:119
proto native vector Vector(float x, float y, float z)
Vector constructor from components.

Перекрестные ссылки GetPlayerHeadHeight() и Vector().