Announcement

Collapse
No announcement yet.

How to use forward location after enemy die

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

    How to use forward location after enemy die

    Hi,


    After player die if no use "Set simulate physics" work ok, but after that enemy go to past me. So I need after player shoot with weapon (die) I need to found solution how to use Forward Vector. I tried to use AddWorldTransform and SetWorldLocation but not working as expected.

    So, if I shoot the enemy, and use "Set simulate physics", I need to find way how to enemy take it forward, like 0.5-2cm depends of the weapon.

    Is there any tutorial for my case?

    #2
    Hi, I'm not sure if I understood what you're trying to do. Do you want to get the enemy's forward vector after it falls to the ground?
    Unreal Possibilities
    Tower Defense Starter Kit [50% OFF] | Grid Creation Systems [50% OFF] | Line of Sight Visualization [50% OFF]
    Wave Spawning System [70% OFF]

    Comment


      #3
      Hi,

      yes.

      If I shoot on enemy and I used set simulate physics then I do not see enemy anymore. He's behind me. I need to find way how to use location to see player from forward or flies to the front.

      Comment


        #4
        How does the enemy reach behind you when you simulate physics? Are you teleporting it there?
        Unreal Possibilities
        Tower Defense Starter Kit [50% OFF] | Grid Creation Systems [50% OFF] | Line of Sight Visualization [50% OFF]
        Wave Spawning System [70% OFF]

        Comment


          #5
          check these pics. See enemy is on other site, is not forward.

          What I want to do is after enemy dies I need to display enemy in position where weapon is. The weapon ins on forward, so the enemy must be is line where weapon is, or where is the last shoot

          Comment

          Working...
          X