Announcement

Collapse
No announcement yet.

Particles that movign with Weapon? (Muzzle Flash)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Particles that movign with Weapon? (Muzzle Flash)

    Hi there,

    i searched the whole Internet, but can't find anything. So i hope someone could help me.

    I maked some Weapons and followd some tutorials (i've just learning). I created some Muzzleflashes and the weapon can shoot. But, if i shoot and run, the muzzleflash (out of particles) don't move
    with the weapon. Meaning: The muzzle appears, but stay on his Location at Shooting.

    I have all done in Blueprint and set the particlesystem with "spawn particle attached". When i'm Shooting the particles are spawned with "spawn particles Location". I've tryed everthing but i can't get it to work, that the particles move with my weapon. It should be like the Shooting demo from the marketplace.

    The tutorial i follow was this: http://creategamesfromscratch.blogsp...p/content.html

    What am i doing wrong? Sorry for no blueprints, but actually im at work. I hope you understand what i mean (my english is very bad (

    Greetings
    Beregron
    01010100 01101000 01100101 00100000 01110100 01110010 01110101 01110100 01101000 00100000 01101001 01110011 00100000 01101111 01110101 01110100 00100000 01110100 01101000 01100101 01110010 01100101 00101110 00100000 01010100 01110010 01110101 01110011 01110100 00100000 01101110 01101111 00110001 00100001 00100000

    #2
    Since the particle effect is already attached to the weapon, you'll want to open up the particle effect editor and find the "Use local space" option in the "Required" module for the muzzle flash emitter:

    Click image for larger version

Name:	localspace.jpg
Views:	1
Size:	52.6 KB
ID:	1053604

    This option makes particles move with whatever they're attached to, instead of moving independently once they've spawned. Hope that works for you

    Comment


      #3
      Thanks for the quick answer, but: At all Emitters the use local space is enabled allready.
      Hm...thats all weird.

      I have a look when i'm home and post some Screenshots. But thanks for the answer.
      01010100 01101000 01100101 00100000 01110100 01110010 01110101 01110100 01101000 00100000 01101001 01110011 00100000 01101111 01110101 01110100 00100000 01110100 01101000 01100101 01110010 01100101 00101110 00100000 01010100 01110010 01110101 01110011 01110100 00100000 01101110 01101111 00110001 00100001 00100000

      Comment


        #4
        When you're using the Spawn emitter at location node are you using the the get actor location for the emitter location and get actor rotation for the rotation?

        This should get you the results you want with having the emitter to spawn with you. If you look at the First Person Template and how the projectile is spawned you can get some offsets there.

        If you're still having issues be sure to post some screenshots of your blueprint to make it easier to diagnose and give you some feedback.

        Tim
        Tim Hobson | Learning Resources | Epic Games
        UE4 Documentation

        Comment


          #5
          Hi Tim,

          im not sure if i made it right. Here are the Blueprints.

          Click image for larger version

Name:	Blueprint_02.jpg
Views:	1
Size:	398.4 KB
ID:	1053618Click image for larger version

Name:	Blueprint_01.jpg
Views:	1
Size:	362.2 KB
ID:	1053619

          The effect spawns at the right place, but dont move with me. Or did i something forgot?
          Here is a Video to Show, how it Looks like:





          EDIT say:
          Does anyone know how to fix this?
          Last edited by Beregron; 08-19-2014, 04:05 PM.
          01010100 01101000 01100101 00100000 01110100 01110010 01110101 01110100 01101000 00100000 01101001 01110011 00100000 01101111 01110101 01110100 00100000 01110100 01101000 01100101 01110010 01100101 00101110 00100000 01010100 01110010 01110101 01110011 01110100 00100000 01101110 01101111 00110001 00100001 00100000

          Comment


            #6
            I think i fixed the Problem. I have to use "Spawn Emitter attached", not "Spawn Emitter at Location". I should really read the Infos at the Pop up box

            So Spawn Emitter at Location only spawns the Emitter on my last Location where i hit fire. But of course it will stay at the Location. So it's my bad.
            Last edited by Beregron; 08-20-2014, 01:19 PM.
            01010100 01101000 01100101 00100000 01110100 01110010 01110101 01110100 01101000 00100000 01101001 01110011 00100000 01101111 01110101 01110100 00100000 01110100 01101000 01100101 01110010 01100101 00101110 00100000 01010100 01110010 01110101 01110011 01110100 00100000 01101110 01101111 00110001 00100001 00100000

            Comment

            Working...
            X