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

◆ CanBePlaced()

override bool GardenBase::CanBePlaced ( Man player,
vector position )
inlineprivate

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

114 {
115 string surface_type;
116 float surfaceHeight = GetGame().SurfaceGetType3D( position[0], position[1], position[2], surface_type );
117 if ((position[1] - surfaceHeight) > PLACEMENT_HEIGHT_LIMIT)
118 return false;
119
120 return GetGame().IsSurfaceFertile(surface_type);
121 }
bool IsSurfaceFertile(string surface)
Checks if the surface is fertile.
Определения Game.c:1167
proto float SurfaceGetType3D(float x, float y, float z, out string type)
Y input: Maximum Y to trace down from; Returns: Y position the surface was found.
const float PLACEMENT_HEIGHT_LIMIT
Определения GardenPlot.c:5
proto native CGame GetGame()

Перекрестные ссылки GetGame(), CGame::IsSurfaceFertile(), PLACEMENT_HEIGHT_LIMIT и CGame::SurfaceGetType3D().