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

◆ CanBePlaced()

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

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

104 {
105 string surface_type;
106 float surfaceHeight = GetGame().SurfaceGetType3D( position[0], position[1], position[2], surface_type );
107 if ((position[1] - surfaceHeight) > PLACEMENT_HEIGHT_LIMIT)
108 return false;
109
110 return GetGame().IsSurfaceFertile(surface_type);
111 }
bool IsSurfaceFertile(string surface)
Checks if the surface is fertile.
Определения Global/game.c:1222
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().