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

◆ IsTargetFertile()

bool ActionDigWorms::IsTargetFertile ( ActionTarget target)
inlineprivate

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

80 {
81 if (target)
82 {
83 string surface_type;
84 vector position;
85 position = target.GetCursorHitPos();
86
87 GetGame().SurfaceGetType(position[0], position[2], surface_type);
88
89 if (GetGame().IsSurfaceFertile(surface_type))
90 {
91 return true;
92 }
93 }
94
95 return false;
96 }
proto float SurfaceGetType(float x, float z, out string type)
Returns: Y position the surface was found.
proto native CGame GetGame()

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

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