j3sus86 Posted May 12, 2008 Share Posted May 12, 2008 I'm trying to make paintballs, that attach to a vehicle or player at the point where the bullet hit. I'm not so good at math, but i tried to base it off the glue resource, using his method of attaching at the correct offsets. I don't understand the math involved and it not working correctly. All the paintballs seem to stick to the center area of the vehicle. Any help would be much appreciated. http://mta.pastebin.com/d2f62213c Link to comment
j3sus86 Posted May 12, 2008 Author Share Posted May 12, 2008 I'm trying to make paintballs, that attach to a vehicle or player at the point where the bullet hit. I'm not so good at math, but i tried to base it off the glue resource, using his method of attaching at the correct offsets. I don't understand the math involved and it not working correctly. All the paintballs seem to stick to the center area of the vehicle. Any help would be much appreciated. http://mta.pastebin.com/d2f62213c Link to comment
[DooD]Heavyair Posted May 12, 2008 Share Posted May 12, 2008 this is one premade on MTA resources. should help u out https://community.multitheftauto.com/index.php?p=resources&s=details&id=22 Link to comment
[DooD]Heavyair Posted May 12, 2008 Share Posted May 12, 2008 this is one premade on MTA resources. should help u out https://community.multitheftauto.com/index.php?p=resources&s=details&id=22 Link to comment
j3sus86 Posted May 12, 2008 Author Share Posted May 12, 2008 that doesn't really help much, i need help with the math to calculate the offset to use with attachElementToElement(). thx for trying though. Link to comment
j3sus86 Posted May 12, 2008 Author Share Posted May 12, 2008 that doesn't really help much, i need help with the math to calculate the offset to use with attachElementToElement(). thx for trying though. Link to comment
CodeMaster Posted May 13, 2008 Share Posted May 13, 2008 Ummm... as I know paintball resource has a "bug" which leaves same those markers floating after player leaves, he wants it to be like a real paintball. Still I'm not good at all with math (well I'm much younger than most of you probably thought), concluding that those lessons with advanced functions are still awaiting me in further lessons Anyways that looks interesting, and it would be cool if anyone could explain how can I use functions (not lua functions but f(x)=...) to do such thing :{ Cheers Nidza Link to comment
CodeMaster Posted May 13, 2008 Share Posted May 13, 2008 Ummm... as I know paintball resource has a "bug" which leaves same those markers floating after player leaves, he wants it to be like a real paintball. Still I'm not good at all with math (well I'm much younger than most of you probably thought), concluding that those lessons with advanced functions are still awaiting me in further lessons Anyways that looks interesting, and it would be cool if anyone could explain how can I use functions (not lua functions but f(x)=...) to do such thing :{ Cheers Nidza Link to comment
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