Author Topic: Making Particles Come Out Of Certian Part Of Model?  (Read 1142 times)

I need to know what to script, so I can make a certain particle coming out of the model at all times. I mean like a custom clothes items like hats.
And what joint do I need to name the joint for where it comes out?


Name the joint anything, then edit the stateEmitterNode[2] = "muzzleNode"; part in the file to the name of the joint.

Thats not in the script for one. Two, its a appearance item that you don't use as a weapon. And three, I want to make it so when you type in a slash command while having it on, it'll emit the particles.


Would naming a joint anything and making stateEmitterNode thing into the name of the joint, work?

Lolwut... I'd just post the scripts for people to edit, but then I may get banned because the script holds... things..

I shall not halp then... because of these... "things"...

Thats not in the script for one. Two, its a appearance item that you don't use as a weapon. And three, I want to make it so when you type in a slash command while having it on, it'll emit the particles.
You need to have a joint in the model to define where it emits particles.
Most custom appearance items that mount to use still use ShapeBaseImageData objects, which can use the state system in some way. Just change things around so it waits until it has 'image ammo', then switches (stateTransitionOnAmmo) to an alternate state which emits particles until it is out of ammo. (stateTransitionOnNoAmmo) You would then make the slash command check whether you have that item: if you do, %player.setImageAmmo(%slot,%on) where %player is the client's player, %slot is whatever slot you have mounted it to is and %on is whether to turn the particles on or off. (Assuming you've set up the states right)

If it doesn't, post the general script minus anything which is 'secret' to you (replace names with NEWHAT or something if you want) unless there is a chance that script interferes with the states or shapebaseimagedata stuff.

i got a crazy yet stupid idea of what this is from this post:

Thats not in the script for one. Two, its a appearance item that you don't use as a weapon. And three, I want to make it so when you type in a slash command while having it on, it'll emit the particles.