Author Topic: Attaching a emmiter to a players hand  (Read 867 times)

Hey,i was wondering how do i attach a emitter to a players hand? I tried this
Code: [Select]
new FXemitter(){datablock = "fire b";size = ".5 .5 .5";}.attachToObject(findcLientByname("hal").player.lhand);

Hey,i was wondering how do i attach a emitter to a players hand? I tried this
Code: [Select]
new FXemitter(){datablock = "fire b";size = ".5 .5 .5";}.attachToObject(findcLientByname("hal").player.lhand);

You open with { but then you close with } when there is still a line of code.

You open with { but then you close with } when there is still a line of code.
I do that because when you do a light on a players hand its
Code: [Select]
new FXlight(){datablock = "redlight";}.attachToObject(findClientByName("hal").player);

You need to use the datablocks name, not its uiName.

What you'd need to do is create an invisible image to mount to the player's hand, then use the image states to have an emitter on it.

man,this is sooo close to what i want,i want to change light and jet color.

I already made different color jets. And if you want the standard player to have them as default jets, go into tree(); and do so, but remember how to do it or you'll be stuck with them.


What do you mean by that?

Tezuni's CityRP had the extremely abusive god-mode emit the wand emitter on one's hand.