Announcement

Collapse
No announcement yet.

Directional Damage indicator

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

    Directional Damage indicator

    I am making a 3rd person shooter game. When the player takes damage, i want there to be some sort of arrow to point in the direction the damage is received from. but when they move the camera around, that still points in the direction the damage came from. Like World of tanks or the grenade indicators in Call of Duty. Ive seen a video of this being done, but not HOW do do it. I cant find anything. If anyone knows or has a video on this that would be great!
    Also if they are getting shot repeatedly,i want them to disappear quicker. if they take damage once, i want it to stay on screen a bit longer. Thanks!
    Heres an example of what i mean
    Click image for larger version

Name:	dmage indicator.png
Views:	1
Size:	285.8 KB
ID:	1225863
    Last edited by dka13; 07-27-2017, 07:05 PM.

    #2
    Anyone have any idea on this??

    Comment


      #3
      Get a direction vector to the damage source and continue updating this vector to the position the damage came from for the amount of time you want to display the indicator.

      Comment


        #4
        Here's something I found from google - looks useful https://answers.unrealengine.com/que...direction.html

        Comment


          #5
          Got it to WORK!! thanks guys!
          Click image for larger version

Name:	bloodopacity.PNG
Views:	2
Size:	534.7 KB
ID:	1131765
          Last edited by dka13; 07-28-2017, 09:07 PM.

          Comment


            #6
            You can try this

            https://youtu.be/dMmy5sVrc5E

            Comment

            Working...
            X