Soamp Posted September 11, 2010 Posted September 11, 2010 Hi, We have an FPS player and I create an emitter (fire particles) in front of the weapon when player is shooting. sometimes we get this weird error : stack traceback: [C]: in function 'Render' [string "AliFPS.lua"]:63: in main chunk where line 63 of alifps.lua is : fw.Render() when I comment the lines that create the emitter, everything is fine and we never get this error again! did anyone face this problem before? this is how I create the emitter : SetWorld(fw.transparency.world) object.shootemitter=CreateEmitter(5,100,Vec3(0,0,0),1) object.shootemitter:SetVelocity(Vec3(0,0,0)) object.shootemitter:SetRadius(0.01,0.05) object.shootemitter:SetWaver(10) object.shootemitter:Paint(LoadMaterial("abstract::fire.mat")) object.shootemitter:SetPosition(object.shootpos,1) object.shootemitter:SetRotationSpeed(1) SetWorld(fw.main.world) Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.