Author Topic: Emitter nodes in weapons?  (Read 676 times)

Can weapons have emitter nodes and what is the armature called?

Are you talking about something such as this? I'm not precisely understanding what you mean.

(quoted for BBCode)
Quote
   stateName[7]         = "TriggerFire";
   stateSequence[7]      = "Spin";
   stateTransitionOnTriggerUp[7]   = "TriggerSpin";
   stateTransitionOnTimeout[7]   = "TriggerSmoke";
   stateTransitionOnAmmo[7]   = "Fire";
   stateTimeoutValue[7]      = 0.01;
   stateFire[7]         = true;
   stateAllowImageChange[7]   = false;
   stateScript[7]         = "onFire";
   stateWaitForTimeout[7]      = true;
   stateEmitter[7]         = gunFlashEmitter;
   stateEmitterTime[7]      = 0.01;
   stateEmitterNode[7]      = "muzzleNode";

   stateSound[7]         = gunShot1Sound;
   stateEjectShell[7]      = true;

Are you talking about nodes where the bullets do not come out but there are emitters there?

Are you talking about nodes where the bullets do not come out but there are emitters there?
Yes. If I remember correctky muzzleNode was the point where bullets come from. I need a separate node for particles.

Ok, it's relatively simple
The section port bolded will be helpful for this
Simply name the node whatever you want, specify the node in stateEmitterNode, specify the emitter in stateEmitter, and specify whatever else you need.

That should work.
As far as i know Badspot didn't kill that. ;)

Ok, it's relatively simple
The section port bolded will be helpful for this
Simply name the node whatever you want, specify the node in stateEmitterNode, specify the emitter in stateEmitter, and specify whatever else you need.
I see. Thanks.