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

◆ IsPlayerOnGround()

bool ActionDigWorms::IsPlayerOnGround ( PlayerBase player)
inlineprivate

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

99 {
100 vector position = player.GetPosition();
101 float heightDiff = GetGame().SurfaceY(position[0], position[2]);
102 heightDiff = position[1] - heightDiff;
103
104 return heightDiff <= 0.4; // Player is considered on ground
105 }
proto native float SurfaceY(float x, float z)
proto native CGame GetGame()

Перекрестные ссылки GetGame() и CGame::SurfaceY().

Используется в ActionCondition() и ActionConditionContinue().