Drakath Posted January 10, 2014 Posted January 10, 2014 I am making a laser script but I have a problem. Everything works fine except that the end of line doesn't go where it suppose to go. I used getPedTargetCollision to retrieve the coordinates of endX, endY, endZ. But this is what happened: Does anyone know a function that could retrieve the coordinates which would point the laser where the weapon muzzle is pointing ?
Moderators IIYAMA Posted January 10, 2014 Moderators Posted January 10, 2014 You should take a look at the stealth laser. It isn't perfect, but it gives a little result. It uses: getPedBonePosition Do you want to improve your Lua programming skills and make less mistakes? Start with Lua Language Server! Useful functions 3x Spoiler checkPassiveTimer getScreenStartPositionFromBox getPedGender Tutorials 4x Spoiler Scaling DX Events Attach an addEventHandler on a group of elements Debugging
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