Gun Programming plan

I want to create a bullet that shoots and sticks onto a moving target and deals damage over time, The way I am going to go about this is in 3 parts.

The plan is to use a projectile movement function my my blueprint combine with a hit event to get my desired result. the reason why i chose this was because i want to have an invisble projectile so i can attach a particle trail to make it look like a tracer bullet. on top of that, I can tweak bullet drop and trailing vehicles that are far away.

I set up a global health system for the prototype multiplayer match we will have which will deal damage to whatever the bullet is interacting with. EX: casting to vehicals

 This is the moving cube that Im testing out, if the enemy health is = to 0, it will destroy the actor.

This is the moving cube that Im testing out, if the enemy health is = to 0, it will destroy the actor.

 this is showing in the projectile blueprint using the apply damage function in UE4. over the course of 3 seconds. the initial hit is 20 damage out of 100, and for the next 2 seconds it will deal 2.5 damage every.5 seconds

this is showing in the projectile blueprint using the apply damage function in UE4. over the course of 3 seconds. the initial hit is 20 damage out of 100, and for the next 2 seconds it will deal 2.5 damage every.5 seconds

 the linetrace is attached to the bullet, on the hit of the line trace its going to get the hit location and attach itsself to the component of whatever blueprint its interacting with, aside from that there is a sequence(not shown) with the same code, with the exception of an attach to actor node, this is for anythign thats not a vehical but still needs the animation.

the linetrace is attached to the bullet, on the hit of the line trace its going to get the hit location and attach itsself to the component of whatever blueprint its interacting with, aside from that there is a sequence(not shown) with the same code, with the exception of an attach to actor node, this is for anythign thats not a vehical but still needs the animation.