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

◆ IsSpaceFor()

bool IsSpaceFor ( vector size)
protected

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

2495 {
2496 array<Object> objs = {};
2497 if (GetGame().IsBoxCollidingGeometry(GetWorldPosition() + Vector(0, size[1] * 0.5 + 0.1, 0), GetDirection().VectorToAngles(), size, ObjIntersect.View, ObjIntersect.Geom, {this}, objs))
2498 {
2499 foreach (Object obj : objs)
2500 {
2501 if (dBodyGetInteractionLayer(obj) == PhxInteractionLayers.ITEM_LARGE)
2502 return false;
2503 }
2504 }
2505 return true;
2506 }
PhxInteractionLayers
Определения DayZPhysics.c:2
Определения ObjectTyped.c:2
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
proto native CGame GetGame()
proto native vector Vector(float x, float y, float z)
Vector constructor from components.
proto native int dBodyGetInteractionLayer(notnull IEntity ent)

Перекрестные ссылки dBodyGetInteractionLayer(), GetGame() и Vector().

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