Announcement

Collapse
No announcement yet.

issue in Projectile blueprints;;;

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

    issue in Projectile blueprints;;;

    Hello guys,
    I recently made one particle using projectile, hit and muzzle and i want to apply with my character for attack (Fireball).
    But i stuck in blueprints cz i m very new to blueprints...
    so help me out guyss..
    thank you so much....
    Attached Files

    #2
    I don't know what you need (Apply damage to pawns when the fireball hit something, spawn fireball when clicking or problems with the fireball movement), but i can help you in all these problems

    If you want to spawn a new actor, you need to use the Spawn Actor From Class node, and set a class to spawn. If you want apply damage when the fireball touch something, you need to create a "Sphere Collision" around the fireball, and create an "On Component Begin Overlap" event. There, you need to use the "Cast to xxxx" nodes. If you want play an animation when the fireball hits something, just play a particle effect when the fireball hits something, and if you want destroy the fireball when it hits, use the Destroy Actor node.
    I hope this help you

    Comment


      #3
      setup an action input.

      Call that action input in your character blueprint.

      On that action,Spawn emmitter at location. select your muzzle flash emitter and set the location select to the socket of where it will emit from.

      Check this for projectile;
      https://www.youtube.com/watch?v=pdjFm7YA8vI

      Comment


        #4
        Dear,xXRoyitoProXx, MindfieldsTech
        sorry if i couldn't explain right , so let me clear
        check the attached image, I purchase this template from marketplace...
        I want this particle to be thrown from my character's hand when I left click mouse button.

        but in this template, there are lots of particle effects blueprints & all connected with one blueprint, I don't want all this effects, I want only one effect separately. I try to change the blueprint but particles stop working....


        basically I want particles to be thrown from my hand & wherever it goes in the level, when it hit something, enemy or wall or any other object, I want small explosion over there & enemey fall down....

        hope you understand my point now...
        thank you
        Attached Files

        Comment


          #5
          Originally posted by WildChildStudios View Post
          Dear,xXRoyitoProXx, MindfieldsTech
          sorry if i couldn't explain right , so let me clear
          check the attached image, I purchase this template from marketplace...
          I want this particle to be thrown from my character's hand when I left click mouse button.

          but in this template, there are lots of particle effects blueprints & all connected with one blueprint, I don't want all this effects, I want only one effect separately. I try to change the blueprint but particles stop working....


          basically I want particles to be thrown from my hand & wherever it goes in the level, when it hit something, enemy or wall or any other object, I want small explosion over there & enemey fall down....

          hope you understand my point now...
          thank you
          Can u show the blueprint?

          did you watch the video?

          to make the particle make a particle on impact, you have to do an overlap event. Setup collision on the projectile and Onbeginoverlap destroy the projectile and spawn a particle at location, and the location will be the object it hit.

          you need to setup the spawn projectile in the main player character blueprint being triggered by an action input, and the explosion code in the projectile blueprint.

          disable physics for the projectile so it doesn't fall on spawn and it keeps going.

          also you can just remove the scripts that add the extra particles. remember the particle is not an object and will not handle collisions the same way as the projectile., the particle is just an effect.

          if you watch the video you will see the particle is attached to the projectile in the components panel. it lives and dies with the projectile. so in reality you don't even need to spawn any particles at all if you have the particle as a component in the projectile blueprint.

          it looks like each particle is a different effect, just stack them in the projectile blueprint component panel.
          Last edited by MindfieldsTech; 07-22-2020, 02:23 AM. Reason: typo fix

          Comment

          Working...
          X