Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Debug = outputDebugString;
- local fX, fY, fZ = -1800.18726, -573.14966, 16.06318;
- local fX2, fY2, fZ2 = -1809.83704, -569.55994, 16.48438;
- addCommandHandler( "process_line", function()
- local bHit, _, _, _, _, _, _, _, _, _, _, iWorldModelID, fBuildX, fBuildY, fBuildZ, fBuildRotX, fBuildRotY, fBuildRotZ = processLineOfSight ( fX, fY, fZ,
- fX2, fY2, fZ2,
- true,
- false,
- true,
- true,
- false,
- true,
- false,
- false,
- nil,
- true,
- false );
- if bHit then
- Debug( tostring( bHit ) .. ", " .. tostring( iWorldModelID ) .. ", " .. tostring( fBuildX ) .. ", " .. tostring( fBuildY ) .. ", " .. tostring( fBuildZ ) .. ", " .. tostring( fBuildRotX ) .. ", " .. tostring( fBuildRotY ) .. ", " .. tostring( fBuildRotZ ) );
- else
- Debug ( "FALSE" );
- end
- end );
- addEventHandler( "onClientRender", root,
- function()
- dxDrawLine3D( fX, fY, fZ,
- fX2, fY2, fZ2 );
- end
- );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement