Jump to content

Fire Shake


Recommended Posts

Posted

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?

Posted

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) 

Posted

Try this:

local x, y, z = getElementPosition(source) 
createExplosion(x, y, z, 6, false, 0.2, false) 

Posted
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.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...