Scripting Posted February 25, 2012 Posted February 25, 2012 This a function to make a Line 3D But,me i want change this function:set this line appear in weapon aim can a help and thx client-side: addEventHandler( 'onClientRender',root, function( ) local x,y,z = getElementPosition( localPlayer ) dxDrawLine3D( x,y,z,x,y+2,z,tocolor ( 0, 255, 0, 230 ), 2 ) dxDrawLine3D( x,y,z,x,y-2,z,tocolor ( 0, 255, 0, 230 ), 2 ) dxDrawLine3D( x,y,z,x+2,y,z,tocolor ( 0, 255, 0, 230 ), 2 ) dxDrawLine3D( x,y,z,x-2,y,z,tocolor ( 0, 255, 0, 230 ), 2 ) dxDrawLine3D( x,y,z,x,y,z+2,tocolor ( 0, 255, 0, 230 ), 2 ) dxDrawLine3D( x,y,z,x,y,z-2,tocolor ( 0, 255, 0, 230 ), 2 ) end )
Kenix Posted February 25, 2012 Posted February 25, 2012 I not understand you. You need create crosshair or 3d line of weapon to target.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now