547 {
549 vector from = FreeDebugCamera.GetInstance().GetPosition();
550 vector to = from + ( dir * 10000 );
551 vector contact_pos;
552 vector contact_dir;
553 int contact_component;
557 if ( DayZPhysics.RaycastRV(from, to, contact_pos, contact_dir, contact_component, null, null, ev_obj) )
558 {
559 return contact_pos;
560 }
561
562 return "0 0 0";
563 }
proto native vector GetPointerDirection()
Returns the direction where the mouse points, from the camera view.
proto native CGame GetGame()