UE3 - UDK Attach particle system to sockets

  • Two Factor Authentication is now available on BeyondUnreal Forums. To configure it, visit your Profile and look for the "Two Step Verification" option on the left side. We can send codes via email (may be slower) or you can set up any TOTP Authenticator app on your phone (Authy, Google Authenticator, etc) to deliver codes. It is highly recommended that you configure this to keep your account safe.

brold9999

New Member
Apr 5, 2009
142
0
0
Can you be more specific? What is a "socket"?

At any rate, I would recommend finding something in UT3 that does something close to what you want, and look at the code for that as an example.
 

brold9999

New Member
Apr 5, 2009
142
0
0
Ah, i suspected that you were referring to attaching things to bones.

The function DoKismetAttachment in Pawn.uc provides a pretty clear example of how to attach an Actor to a bone or socket. There is a similar function in SkeletalMeshActor.uc. Depending on your purposes, you may be able to use the Kismet action directly, otherwise you can modify that code to suit your purposes.
 

farshad12

New Member
May 7, 2010
4
0
0
Just put this in your code:

Code:
Mesh.AttachComponentToSocket(MyEffect, MySocket);

MyEffect variable is from type ParticleSystemComponent, and MySocket variable is from type Name. That's it.