277 {
279 {
280 return null;
281 }
282
283
285
286
287 vector from = FreeDebugCamera.GetInstance().GetPosition();
288
289 vector to = from + ( dir * 10000 );
290
291 vector contact_pos;
292 vector contact_dir;
293 int contact_component;
294
295 if ( DayZPhysics.RaycastRV(from, to, contact_pos, contact_dir, contact_component) )
296 {
298
299 if ( obj != NULL )
300 {
302 return obj;
303 }
304 }
305
306 return NULL;
307 }
proto native vector GetPointerDirection()
Returns the direction where the mouse points, from the camera view.
ref SceneData m_SceneData
void SelectObject(SceneObject obj)
string m_ClassBrowserSelected
proto native CGame GetGame()