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

◆ GetTargetSurfaceInfo()

SurfaceInfo ActionBase::GetTargetSurfaceInfo ( vector cursorHitPos)
inlineprotected

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

577 {
578 SurfaceInfo surfaceInfo;
579 SurfaceDetectionParameters surfaceParams = new SurfaceDetectionParameters();
580 surfaceParams.type = SurfaceDetectionType.Roadway;
581 surfaceParams.position = cursorHitPos;
582 surfaceParams.includeWater = true;
583 surfaceParams.syncMode = UseObjectsMode.NoWait;
584 surfaceParams.rsd = RoadSurfaceDetection.ABOVE;
585
586 SurfaceDetectionResult surfaceResult = new SurfaceDetectionResult();
587 if (g_Game.GetSurface(surfaceParams, surfaceResult) && surfaceResult.surface)
588 {
589 surfaceInfo = surfaceResult.surface;
590 }
591
592 return surfaceInfo;
593 }
DayZGame g_Game
Определения DayZGame.c:3868
SurfaceDetectionType
Определения SurfaceInfo.c:66
UseObjectsMode
Определения SurfaceInfo.c:54
int[] SurfaceInfo
Определения SurfaceInfo.c:1
bool includeWater
Include water in the surface detection, will return the water if it is higher than the surface.
Определения SurfaceInfo.c:83
SurfaceDetectionType type
Type of surface to detect.
Определения SurfaceInfo.c:77
RoadSurfaceDetection rsd
See RoadSurfaceDetection, SurfaceTraceType.Roadway only.
Определения SurfaceInfo.c:92
vector position
3D position to trace the surface from
Определения SurfaceInfo.c:80
UseObjectsMode syncMode
See UseObjectsMode, SurfaceTraceType.Roadway only.
Определения SurfaceInfo.c:86
SurfaceInfo surface
Returned SurfaceInfo, plain pointer.
Определения SurfaceInfo.c:114

Перекрестные ссылки g_Game, SurfaceDetectionParameters::includeWater, SurfaceDetectionParameters::position, SurfaceDetectionParameters::rsd, SurfaceDetectionResult::surface, SurfaceDetectionParameters::syncMode и SurfaceDetectionParameters::type.