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

◆ IsUnderRoofEx()

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

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

1092 {
1093 vector from;
1094 vector to;
1095
1096 IsUnderRoofFromToCalculation(entity, from, to, height);
1097
1098 vector contact_pos;
1099 vector contact_dir;
1100 int contact_component;
1101
1102 return DayZPhysics.RaycastRV(from, to, contact_pos, contact_dir, contact_component, NULL, NULL, entity, false, false, geometry,0.25);
1103 }
static void IsUnderRoofFromToCalculation(EntityAI entity, out vector from, out vector to, float height=GameConstants.ROOF_CHECK_RAYCAST_DIST)
Определения MiscGameplayFunctions.c:1056
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:119

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

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