Jump to content

stack traceback error on fw:Render() command?!?!


Soamp
 Share

Recommended Posts

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)

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...