How to make irregular region borders in open world game?

Ted Agriogianis
Fri, 11 Jun 2021 07:09:17 +0000
World Creation

I’m making a very large open world game. (It’s a life sized version of the island of Crete). One of the main things I want is for each region to be clearly and realistically represented. How can I detect what region the player is currently in? As you can see, the regions have very irregular shapes, so simple shapes, unless I use hundreds of them, won’t cut it. I want the borders to be accurate.

I’m new to Unreal, so I’m struggling with the trigger code. I’m still unsure whether trigger and overlap events even work for irregular static meshes, but I can’t even get it to work with a massive cube shaped trigger. Right now, the goal is to just have a simple UI animation play whenever the player enters a region, displaying the name of the municipality, which I’m testing right now by dropping the player in from the sky. Currently, the player goes through the mesh into the region, but nothing happens. This blueprint is attached to each municipality, which is a static mesh in the shape of the region.

Any advice at all would be greatly appreciated. If there’s a way to accomplish this without triggers and overlaps, that would be even better.

4 posts - 1 participant