undefined Posted July 12, 2015 Share 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? Link to comment
GTX Posted July 12, 2015 Share Posted July 12, 2015 Stain? You mean it deals damage or you see the explosion? Link to comment
GTX Posted July 12, 2015 Share Posted July 12, 2015 Hmm, that's odd. Did you put it under ground? Link to comment
undefined Posted July 12, 2015 Author Share 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) Link to comment
GTX Posted July 12, 2015 Share Posted July 12, 2015 Try this: local x, y, z = getElementPosition(source) createExplosion(x, y, z, 6, false, 0.2, false) Link to comment
undefined Posted July 12, 2015 Author Share Posted July 12, 2015 But if i do it, the explosion will seems. Link to comment
undefined Posted July 12, 2015 Author Share Posted July 12, 2015 If i use setCameraMatrix, the camera will not shaking. -,- My goal is remove black stain... Link to comment
GTX Posted July 12, 2015 Share 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. 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