# Rotate SpawnEmitterMeshAttachment ?

**URL:** <https://forums.unrealengine.com/t/rotate-spawnemittermeshattachment/124801>\
**Category:** UDK Programming and UnrealScript\
**Tags:** unreal-engine\
**Created:** [April 11, 2019, 6:32am UTC](https://forums.unrealengine.com/t/rotate-spawnemittermeshattachment/124801 "2019-04-11T06:32:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![CobaltUDK](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/cobaltudk/32/1194497_2.png) [@CobaltUDK](https://forums.unrealengine.com/u/CobaltUDK)\
**Post date:** [April 11, 2019, 6:32am UTC](https://forums.unrealengine.com/t/rotate-spawnemittermeshattachment/124801/1 "2019-04-11T06:32:49Z")

</div>

I’m trying to rotate a ParticleSystemComponent attached to a bone in a character skeletalmesh, but always the rotation is aligned with the bone rotation.

For example the last parameter, the relative rotation, do nothing with any valour:

FX = WorldInfo.MyEmitterPool.SpawnEmitterMeshAttachment(ParticleSystem’effect’, Mesh, bone, false,rotatorvar);

and doing this afther the spawn:

FX.setrotation(rotatorvar);

also nothing.

There are any way to do this? I can rotate particles but not if they are attached to a bone.

---

<div class="post-metadata">

**Author:** ![Nathaniel3W](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nathaniel3W](https://forums.unrealengine.com/u/Nathaniel3W)\
**Post date:** [April 12, 2019, 11:56am UTC](https://forums.unrealengine.com/t/rotate-spawnemittermeshattachment/124801/2 "2019-04-12T11:56:47Z")

</div>

Probably your best bet would be to update the particle system component’s location and rotation in your pawn’s Tick or TickSpecial. I know that you can get a socket’s location in UnrealScript. I’m not sure about a bone. If you can’t get the bone’s location, it’s pretty easy to put a socket on your mesh.

---

<div class="post-metadata">

**Author:** ![CobaltUDK](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/cobaltudk/32/1194497_2.png) [@CobaltUDK](https://forums.unrealengine.com/u/CobaltUDK)\
**Post date:** [April 14, 2019, 7:33am UTC](https://forums.unrealengine.com/t/rotate-spawnemittermeshattachment/124801/3 "2019-04-14T07:33:37Z")

</div>

Yes, there are a function to get the bone location that works fine, getbonelocation(bone), but I already have the bone name from the takedamage event, using tracecomponent. It’s for a blood effect. The particle is attached correctly to the bone, but it seems that the relative rotation does nothing. I will try with the component, thank you.
