Highlight pawns within a range

I have a spell where the player can spawn mist particles to obscure the landscape (meant for pvp). I want the player to be able to see others in the mist while other can’t. I was thinking about highlighting pawns that overlap a sphere or trace. How would you do this?

Hey TheSceriffo!
So the way it would work is using a post-process volume. You would apply a material in the post-process (In client ONLY so the one who casts the spell is the only one who sees), and the volume for the post process will be exclusively in your smoke cloud.

Check out this tutorial for tips. You’re probably going to do this 95% exactly how it details in the tutorial, you’ll just make the volume on the fly.

Thanks for that tutorial! How would I implement it just for a limited time and place?

Go through it, and when you get to the point of the “post process volume” you would create your OWN as an actor (or maybe a component, I don’t remember if you can make these components), appropriately sized to the spell, and spawn/destroy it along with the spell instead of just making a giant volume in-level (still do that for testing purposes while you’re getting it figured out, though).

If you’re using UE 5.1 you can easily use new Translucent Overlay Material

You can change this material at runtime anytime you want. It’s better performance friendly option rather than using post process volume and also it’s easier to integrate and work with.

1 Like