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

◆ CanBePlaced()

override bool CanBePlaced ( Man player,
vector position )
protected

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

2570 {
2571 string surfaceType;
2572 float surfaceHeight = GetGame().SurfaceGetType3D( position[0], position[1], position[2], surfaceType );
2573 if ((position[1] - surfaceHeight) > PLACEMENT_HEIGHT_LIMIT)
2574 return false;
2575
2576 return true;
2577 }
const float PLACEMENT_HEIGHT_LIMIT
Определения FireplaceBase.c:204
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.
proto native CGame GetGame()

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