Author Topic: Spawning particles/emitters [Solved]  (Read 1716 times)

How do I spawn particles/emitters?
« Last Edit: February 07, 2013, 10:29:37 PM by Electrk »


Quote from: Torque 3D Documentation
Debris are client side only objects.

damn

Just spawn an explosion with the debris you want.

Just spawn an explosion with the debris you want.

I want the debris' colors to be unique for each though.

I want the debris' colors to be unique for each though.
Craaaaap.

Well I know that some emitters take the color of their bricks. Perhaps spawn a brick with the emitter you want and then quickly delete the brick? Then you could have different colors at least.


Spawning a Fire Emitter:

Code: [Select]
%emitter = new particleEmitterNode()
{
dataBlock = "GenericEmitterNode";
emitter = "BurnEmitterA";
position = %pos;
spherePlacement = 0;
velocity = 1;
};

You should try searching next time. Or doing some investigation in game.

Spawning a Fire Emitter:

Code: [Select]
%emitter = new particleEmitterNode()
{
dataBlock = "GenericEmitterNode";
emitter = "BurnEmitterA";
position = %pos;
spherePlacement = 0;
velocity = 1;
};

You should try searching next time. Or doing some investigation in game.

I usually do search. I'm not sure why I didn't this time.