11 StartPeriodicMeasurement();
15 void StartPeriodicMeasurement()
22 m_Timer.Run( 0.01,
this,
"PrepareMeasurement",
null,
true );
25 void PrepareMeasurement()
33 float dispersion = 80;
37 vector to = from + (ori.AnglesToVector() )* 30;
42 bool is_collision =
DayZPhysics.RaycastRV( from, to, contact_pos, contact_dir, contactComponent, NULL , NULL, GetHierarchyRootPlayer(),
false,
false, ObjIntersectIFire);
46 vector hit_normal = contact_dir.VectorToAngles();
47 hit_normal[1] = hit_normal[1] + 90;
51 p.SetOrientation(hit_normal);
55 void StopPeriodicMeasurement()
67 StopPeriodicMeasurement();