![]() |
|
|
#1 |
|
Attach particle system to sockets
Does anyone knwo what the code should be to attach a particle system to a socket in UDK? or a good link to a tute? I just cannot get it to work..
|
|
|
|
|
|
|
#2 |
|
Registered User
Join Date: Apr. 5th, 2009
Posts: 142
|
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.
__________________
UT Space Battle Main Homepage - https://sourceforge.net/projects/utspacebattle/ UT3 Site - http://www.moddb.com/mods/ut-space-battle UT2004 Site - http://www.moddb.com/mods/ut-space-battle-ut2004 |
|
|
|
|
|
#3 |
|
A socket is a thing you can create to add to a character skeleton bone, to attach something to like a gun or particle system. You can create sockets for vehicles too....I have looked at some examples but I dont get it, hence the post...
|
|
|
|
|
|
|
#4 |
|
Registered User
Join Date: Apr. 5th, 2009
Posts: 142
|
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.
__________________
UT Space Battle Main Homepage - https://sourceforge.net/projects/utspacebattle/ UT3 Site - http://www.moddb.com/mods/ut-space-battle UT2004 Site - http://www.moddb.com/mods/ut-space-battle-ut2004 |
|
|
|
|
|
#5 |
|
Registered User
Join Date: Jan. 29th, 2006
Posts: 113
|
AttachComponentToSocket()
|
|
|
|
|
|
#6 |
|
would Bone/Socket Location in Cascade do it?
|
|
|
|
|
|
|
#7 |
|
Just put this in your code:
Code:
Mesh.AttachComponentToSocket(MyEffect, MySocket); |
|
|
|
|
![]() |
| Tags |
| character, code, particle, sockets |
| Thread Tools | |
| Display Modes | |
|
|