I tried to add smoke to my steam locomotive without success. Code: obj:addParticleByNodesRelative(smoke_origin, smoke_origin2, 0.0, 0.0, 0.0, 16) Code: local function onInit() for k, node in pairs (v.data.nodes) do if node.name == "stack" then smoke_origin=k end if node.name == "35r" then smoke_origin2=k end end end
This is the correct way to use the function. addParticleByNodesRelative(nodeId1, nodeid2, velocity, particleType, width, count) In your code you set particleType to 0, this link the particle with the BNGP_0 that is not existing. Try to use a valid particleType, check "art\shapes\particles\managedParticleEmitterData.cs"