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

◆ IsSpaceFor()

bool IsSpaceFor ( vector size)
protected

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

2488 {
2489 array<Object> objs = {};
2490 if (GetGame().IsBoxCollidingGeometry(GetWorldPosition() + Vector(0, size[1] * 0.5 + 0.1, 0), GetDirection().VectorToAngles(), size, ObjIntersect.View, ObjIntersect.Geom, {this}, objs))
2491 {
2492 foreach (Object obj : objs)
2493 {
2494 if (dBodyGetInteractionLayer(obj) == PhxInteractionLayers.ITEM_LARGE)
2495 return false;
2496 }
2497 }
2498 return true;
2499 }
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().