x

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"

Efficient way to tell if there is an actor at a specific location?

I've been working on a pacman like maze game ( the example map I have actually has the exact layout of the pacman maze) and have run into a problem with spawning my pickups. Now I know that there is a get actors of a class function that I could potentially use to check whether every actor in of that class is overlapping my newly spawned actor and if it is delete the latter mentioned actor. This does not make it possible, however, to test without putting everything into a class. I do wonder, however, if there is a way to check a specific location for any actor or to check if any actor is currently overlapping my object. An idea in the right direction would be nice. Here is how the game looks right now without location checking.

[1]: /storage/temp/19844-spawnproblempost.png

Product Version: Not Selected
Tags:
more ▼

asked Nov 03 '14 at 06:29 AM in Blueprint Scripting

avatar image

mcpiesburntongues
40 4 4 6

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

1 answer: sort voted first

Most methods you could choose for this are pretty low cost performance-wise. A couple ways you could do it:

  1. Put a volume at the spawn location that is checking for overlapping actors. When an actor enters, set bool. When actor leaves, unset bool.

  2. Do a line/sphere/etc trace on that location and see if any actors are pulled.

more ▼

answered Nov 03 '14 at 07:13 AM

avatar image

Zeustiak
1.8k 131 68 110

avatar image mcpiesburntongues Jul 03 '15 at 02:12 AM

Sorry for not accepting earlier. This isn't the method I used to solve my problem, but for the way I phrased the question this is definitely an adequate answer.

(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