Game Development Community

How can I Mount and Emit The Particle

by TigerHeros · in Torque 3D Professional · 07/19/2010 (11:48 am) · 3 replies

Hi All

In My Project

When The user click the tap. The water should pour from the tap.

How can I mount a water emitter from the Tap?(through Scripting)

Any Ideas welcome.

#1
07/19/2010 (2:02 pm)
Couldn't you just place the emitter at the tap with the editor and then use script to turn the emitter on and off?
#2
07/19/2010 (3:42 pm)
Well how can we mount a emitter to a weapon for example, like a particle sword
#3
07/19/2010 (4:06 pm)
You want to create a ParticleEmitterNode:

%emitterNode = new ParticleEmitterNode()
      {
         emitter = BloodEmitter;
         datablock = MyParticleEmitterData;
         active = true;
         velocity = 1.0;
         position = %pos;
      };

Datablock is:

datablock ParticleEmitterNodeData(MyParticleEmitterData)
{
   timeMultiple = 1.0;
};