Advertisement
Kenix157

Untitled

Sep 20th, 2016
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.03 KB | None | 0 0
  1. Debug = outputDebugString;
  2.  
  3. local fX, fY, fZ = -1800.18726, -573.14966, 16.06318;
  4. local fX2, fY2, fZ2 = -1809.83704, -569.55994, 16.48438;
  5.  
  6. addCommandHandler( "process_line", function()
  7.     local bHit, _, _, _, _, _, _, _, _, _, _, iWorldModelID, fBuildX, fBuildY, fBuildZ, fBuildRotX, fBuildRotY, fBuildRotZ = processLineOfSight ( fX, fY, fZ,
  8.                                 fX2, fY2, fZ2,
  9.                                            true,
  10.                                            false,
  11.                                            true,
  12.                                            true,
  13.                                            false,
  14.                                            true,
  15.                                            false,
  16.                                            false,
  17.                                            nil,
  18.                                            true,
  19.                                            false );
  20.            
  21.     if bHit then
  22.         Debug( tostring( bHit ) .. ", " .. tostring( iWorldModelID ) .. ", " .. tostring( fBuildX ) .. ", " .. tostring( fBuildY ) .. ", " .. tostring( fBuildZ ) .. ", " .. tostring( fBuildRotX ) .. ", " .. tostring( fBuildRotY ) .. ", " .. tostring( fBuildRotZ ) );
  23.     else   
  24.         Debug ( "FALSE" );
  25.     end
  26. end );
  27.  
  28. addEventHandler( "onClientRender", root,
  29.     function()
  30.         dxDrawLine3D( fX, fY, fZ,
  31.                                 fX2, fY2, fZ2 );
  32.     end
  33. );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement