undefined Posted July 12, 2015 Posted July 12, 2015 I add createExplosion for create shake when the player fire weapon. But it is make stain. How can i prevent this stain or Is there another way to shake?
GTX Posted July 12, 2015 Posted July 12, 2015 Stain? You mean it deals damage or you see the explosion?
undefined Posted July 12, 2015 Author Posted July 12, 2015 No, it is occuring when i fired. So, createExplosion... local mx, my, mz = getPedWeaponMuzzlePosition(source) createExplosion(mx,my,mz-10, 12, false, 0.2, false)
GTX Posted July 12, 2015 Posted July 12, 2015 Try this: local x, y, z = getElementPosition(source) createExplosion(x, y, z, 6, false, 0.2, false)
undefined Posted July 12, 2015 Author Posted July 12, 2015 If i use setCameraMatrix, the camera will not shaking. -,- My goal is remove black stain...
GTX Posted July 12, 2015 Posted July 12, 2015 local x, y, z = getElementPosition(source) createExplosion(x, y, z+10, 6, false, 0.2, false) Try this. And you can't just remove stain like that. It's impossible afaik.
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