Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Check if player in Region without Volume


How can i check if the player enters a specific area of the map without placing volumes in the level. I have a data table like this: X1, Y1, Z1, X2, Y2, Z2, regionName

-13588, 293949, 24, 120, 20202, 24, middleSouthWestPark

Inside this table stored "zones" of my map.

X1, Y1, Z1 The bottom left corner of the zone

X2, Y2, Z2 The top right corner of the zone

I have 120 of these zones. So it would be a pain to create manually for each zone an trigger volume to check if player is inside it. Is there a solution to check this only via code? I dont think that this is impossible.

I need this to Display thr name of the zone on the screen and to control other things like sounds.

Product Version: UE 4.20
more ▼

asked Nov 01 '18 at 05:28 PM in Blueprint Scripting

avatar image

16 2 5 9

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

My idea:

  1. Create an Actor Blueprint, very basic, based on just the Actor class.

  2. Give it two components,a scene component, and a collision box inside of that. position them so that the box's bottom left corner is exactly on the scene component.

  3. Create a function to generate the "zones", which in a For loop from 0 to 120, it Spawns one of these actors at the location needed, maybe it's on a grid so you just multiply the positions by the index of the loop.

  4. Run this function to generate all 120 zones.

After you got this working, you can add things to the Zone Actors like OnBeginOverlap and OnEndOverlap event, and a string for ZoneName, etc.

more ▼

answered Nov 01 '18 at 05:37 PM

avatar image

3.7k 18 22 20

avatar image alarm130 Nov 01 '18 at 07:41 PM

Thank you! I'll try this

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question