Right now i have a grenade that damages if you’re in range and in line of sight to the center of the explosion, but when trying to add some Radial Impulse that pushes only those in range and in line of sight, couldn’t find a way to do it…
I’ve searched a lot for a solution but couldn’t find any.
Here’s what i’ve got:
Where and how do i add the “Fire Impulse only affects those in line of sight” bit?
Should i use something that isn’t Fire Impulse?
Thanks
HI
What you could do in a Sphere Line Trace for Objects.
Then if it detects a PAWN, you could then apply damage to that PAWN.
Ok i found what i was doing wrong.
I was using a Radial Force component to add an impulse at the location of the explosion (because some tutorials in youtube told me to) but after hours of testing different scenarios, i found out that it wasn’t needed at all.
If you’re having the same problem, here’s what i did:
- In the project’s Blueprints folder, create a new Blueprint Class
- Open the new Blueprint and under Class Defaults you can change the Damage Impulse to whatever you like
- Go back to your Apply Radial Damage and change the Damage Type Class to the one we just created
In the end you can just delete the RadialForce Component since it isn’t needed