Blockland Forums > Modification Help
Emitter nodes in weapons?
Demian:
Can weapons have emitter nodes and what is the armature called?
Port:
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;
--- End quote ---
Treynolds416:
Are you talking about nodes where the bullets do not come out but there are emitters there?
Demian:
--- Quote from: Treynolds416 on March 25, 2012, 08:28:21 AM ---Are you talking about nodes where the bullets do not come out but there are emitters there?
--- End quote ---
Yes. If I remember correctky muzzleNode was the point where bullets come from. I need a separate node for particles.
Treynolds416:
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.