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

◆ IsUnderRoofEx()

static bool IsUnderRoofEx ( EntityAI entity,
float height = GameConstants.ROOF_CHECK_RAYCAST_DIST,
int geometry = ObjIntersectView )
staticprotected

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

1007 {
1008 vector from;
1009 vector to;
1010
1011 IsUnderRoofFromToCalculation(entity, from, to, height);
1012
1013 vector contact_pos;
1014 vector contact_dir;
1015 int contact_component;
1016
1017 return DayZPhysics.RaycastRV(from, to, contact_pos, contact_dir, contact_component, NULL, NULL, entity, false, false, geometry,0.25);
1018 }
static void IsUnderRoofFromToCalculation(EntityAI entity, out vector from, out vector to, float height=GameConstants.ROOF_CHECK_RAYCAST_DIST)
Определения MiscGameplayFunctions.c:971
static proto bool RaycastRV(vector begPos, vector endPos, out vector contactPos, out vector contactDir, out int contactComponent, set< Object > results=NULL, Object with=NULL, Object ignore=NULL, bool sorted=false, bool ground_only=false, int iType=ObjIntersectView, float radius=0.0, CollisionFlags flags=CollisionFlags.NEARESTCONTACT)
Raycasts world by given parameters.
Определения DayZPhysics.c:124
Определения EnConvert.c:106

Перекрестные ссылки IsUnderRoofFromToCalculation() и DayZPhysics::RaycastRV().

Используется в IsUnderRoof().