# Laser mounted on aircraft

**URL:** <https://forums.unrealengine.com/t/laser-mounted-on-aircraft/418702>\
**Category:** Blueprint\
**Tags:** gun, target, laser, unreal-engine, particle, question, Blueprint\
**Created:** [March 1, 2018, 5:06pm UTC](https://forums.unrealengine.com/t/laser-mounted-on-aircraft/418702 "2018-03-01T17:06:48Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![phaeton1911](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@phaeton1911](https://forums.unrealengine.com/u/phaeton1911)\
**Post date:** [March 1, 2018, 5:06pm UTC](https://forums.unrealengine.com/t/laser-mounted-on-aircraft/418702/1 "2018-03-01T17:06:48Z")

</div>

ive attached a laser gun to an aircraft, very straight forward and ive made a beam emitter that is attached to a projectile so when it fires it draws a beam out from the gun to the point of impact.

the problem is the beam source always separates from the muzzle after firing making the laser look like its firing from about a meter behind the gun as the aircraft is in motion.

how can i lock the source of the laser to the moving muzzle?

---

<div class="post-metadata">

**Author:** ![phaeton1911](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@phaeton1911](https://forums.unrealengine.com/u/phaeton1911)\
**Post date:** [March 1, 2018, 6:25pm UTC](https://forums.unrealengine.com/t/laser-mounted-on-aircraft/418702/2 "2018-03-01T18:25:42Z")

</div>

actually i may have spotted a different problem all together.  
my laser beam always spawns about 10m ahead of the muzzle, no matter what parameters i change

---

<div class="post-metadata">

**Author:** ![Arty-McLabin](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/arty-mclabin/32/1012076_2.png) [@Arty-McLabin](https://forums.unrealengine.com/u/Arty-McLabin)\
**Post date:** [March 1, 2018, 8:20pm UTC](https://forums.unrealengine.com/t/laser-mounted-on-aircraft/418702/3 "2018-03-01T20:20:54Z")

</div>

Make sure you are spawning your emitter attached to the muzzle (gun, aircraft or whatever) mesh.

Looks like you are just spawning it in the current position of the muzzle, but if you spawn it attached, it will move along with the mesh you attach it to.   
  
the node name for that is called “SpawnEmitterAttached”.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_49a519741](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_49a519741](https://forums.unrealengine.com/u/anonymous_user_49a519741)\
**Post date:** [March 1, 2018, 8:30pm UTC](https://forums.unrealengine.com/t/laser-mounted-on-aircraft/418702/4 "2018-03-01T20:30:49Z")

</div>

Yep. Do this, phaeton.

---

<div class="post-metadata">

**Author:** ![phaeton1911](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@phaeton1911](https://forums.unrealengine.com/u/phaeton1911)\
**Post date:** [March 2, 2018, 12:25pm UTC](https://forums.unrealengine.com/t/laser-mounted-on-aircraft/418702/5 "2018-03-02T12:25:07Z")

</div>

Was already doing this, it seemed like the obvious choice between the two.

i ended up setting the source for the beam -500 on the X axis which seems to have fixed the worst of it

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_49a519741](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_49a519741](https://forums.unrealengine.com/u/anonymous_user_49a519741)\
**Post date:** [March 2, 2018, 7:38pm UTC](https://forums.unrealengine.com/t/laser-mounted-on-aircraft/418702/6 "2018-03-02T19:38:22Z")

</div>

Did you give it a socket to attach to?

---

<div class="post-metadata">

**Author:** ![Arty-McLabin](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/arty-mclabin/32/1012076_2.png) [@Arty-McLabin](https://forums.unrealengine.com/u/Arty-McLabin)\
**Post date:** [March 3, 2018, 2:22pm UTC](https://forums.unrealengine.com/t/laser-mounted-on-aircraft/418702/7 "2018-03-03T14:22:55Z")

</div>

also make sure the socket you attach to has the right name spelling. wrong name just resets the point to local root. it’s case sensitive so mind capital letters
