242 {
244 {
245 return;
246 }
247
249 {
250
252
253
254 vector from = FreeDebugCamera.GetInstance().GetPosition();
255
256 vector to = from + ( dir * 10000 );
257
258 vector contact_pos;
259 vector contact_dir;
260 int contact_component;
261
262
263
264 if ( DayZPhysics.RaycastRV(from, to, contact_pos, contact_dir, contact_component, NULL, NULL, NULL, false, true) )
265 {
267 }
268
270 }
271 }
proto native vector GetPointerDirection()
Returns the direction where the mouse points, from the camera view.
SceneObject GetSelectedSceneObject()
void SetPosition(vector pos)
proto native CGame GetGame()