Hi I am using the below BP’s for a shield and a laser shot. How would I go about getting the shield to block and stop the laser shot?


Hi I am using the below BP’s for a shield and a laser shot. How would I go about getting the shield to block and stop the laser shot?


If the laser overlaps the Shield, destroy the laser.
I’m guessing I would use a cast to shield in the laser BP and then use a destroy actor node like below but I’m not sure what nodes to use and where they go or would I reference the shield in a completely different way?

No the Shield should manage what hits it.
In the Shield you want to check when something overlaps it, if its a Laser you may want to reduce the shields energy or something and then destroy the Laser. Casting the OtherActor to Laser will allow you to determine if it was a Laser or not.
So how do I check if the laser overlaps with the shield?
do the onhit in the shield blueprint.
That will give you a reference to the “other actor” you can get the class of the “other actor” then if its a laser, or whatever else you want to have blocked, have it do its own destroy routine.
How fast is this later? In the laser bp turn on ccd. It might not be registering the overlap because it’s already passed it in a frame