~Cyber^ Posted July 7, 2020 Share Posted July 7, 2020 Hi, I was wondering how can I remove fire from the gun when I shoot? here's an example: Link to comment
Scripting Moderators Sarrum Posted July 9, 2020 Scripting Moderators Share Posted July 9, 2020 . You can do it with a simple texture replacement shader. local rawShader = [[ texture Tex; technique simple { pass P0 { Texture [ 0 ] = Tex; } } ]] local shader = dxCreateShader ( rawShader, 0, 0, false, "ped" ) local texture = dxCreateTexture ( 1, 1 ) dxSetShaderValue ( shader, "Tex", texture ) engineApplyShaderToWorldTexture ( shader, "muzzle_texture4" ) 1 1 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