Hiding Posted September 7, 2023 Share Posted September 7, 2023 Hi, I want to remove every smoke from the car, engine smoke, explodion smoke, etc. My question is why just not removing the smoke? texShader = dxCreateShader ( "texreplace.fx" ) function removeSmoke() engineRemoveShaderFromWorldTexture(texShader,"collisionsmoke") engineRemoveShaderFromWorldTexture(texShader,"smoke") engineRemoveShaderFromWorldTexture(texShader,"smoke5") engineRemoveShaderFromWorldTexture(texShader,"smoke4") engineRemoveShaderFromWorldTexture(texShader,"smokeII_3") engineRemoveShaderFromWorldTexture(texShader,"fireball6") end addEventHandler("onClientResourceStart", root, removeSmoke) Link to comment
AngelAlpha Posted September 9, 2023 Share Posted September 9, 2023 1 hour ago, Hiding said: Help pls? replacer engineRemoveShaderFromWorldTexture > engineApplyShaderToWorldTexture Link to comment
Hiding Posted September 9, 2023 Author Share Posted September 9, 2023 So first I have to apply a blink image for example? Link to comment
DiSaMe Posted September 10, 2023 Share Posted September 10, 2023 If you want to apply the shader to texture, you need engineApplyShaderToWorldTexture. But you're calling engineRemoveShaderFromWorldTexture, which does the opposite thing - it restores the original appearance that was previously modified using engineApplyShaderToWorldTexture. 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