Have projectile destroy self after X bounces

Capital_Vices
Fri, 02 Jul 2021 06:20:27 +0000
World Creation

Title says it all. I am exceedingly new to UE4, and am still learning just how… literally everything works. To be more clear on what I’m going for… The projectile is a disc that I want to:

Bounce X times off the environment before destroying self

destroy self when impacting an actor

Turn to face the direction it is travelling in

Thankfully the basic FPS scene allows for the last two pretty easily; I turned projectile mass to zero and set rotation relative to motion? Something like that. Where I’m struggling is having the projectile pop after reaching maximum number of bounces. Think the light discs from TRON

Ideally I’d just like to know what to add to the existing nodes to this effect. I plan on learning how to build my own projectile systems from scratch but for now I’m just trying to rough out an idea.

6 posts - 1 participant