How to make a Sector where buildings can be built, and you will not be able to leave it

Hello,
I ask because it develops simulation game, and I would like to have in the sector where the player can build and beyond will not be able to do

Hi, thanks for your help. But I can not find BP Player character Master because I have RTS cam

Hey, you can add a Box Trigger to your world (Simply search for “Box” in the “Modes” Panel), Resize it like you want to fit the Sector you want.

Then go on the Details panel click on : Blueprint/Add Script. This will create a new blueprint based on this box collision. Inside the blueprint you can select your box collision and go in the Details panel, to the bottom : On begin Overlap.
From the event OnBeginOverlap, Cast the “Other actor” to your player character and Set “Can build” (go to your character blueprint first and create a new variable “CanBuild”).

Hope this helps

Yes instead of BP_PlayerCharacter_Master (linked to my project) you should cast to your own PlayerCharacter class

I did that with my player, and now I have to build a simple build system.
THX fo Help