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"

Problems comparing translations of actors consistently

I'm having a strange issue when trying to spawn an actor on overlap with another actor. I have a box component set to trigger overlap events with the player and on that overlap event, the actor should spawn another one of itself in a random location designated by an array of spawn point actors that I made and then destroy itself. The problem is, sometimes the actor creates a second actor in the same location as itself despite me having checks to make sure this won't be the case. I have a variable that stores the spawn point actor that the current actor was spawned at and when selecting a new spawn from the array it checks to make sure it isn't the same. If it is, it tries again. I have a debug message set to print "double" if it is the same location. Sometimes this gets triggered, sometimes it doesn't. I also have a bool that ensures the overlap can only be triggered once. Finally, I have debug messages set to display the vector location of the actor when it spawns (blue) and when it has an overlap event triggered (purple) so I can check the location of new actors against the triggered one. Somehow, despite all this, I still get instances of a new node being placed exactly where the old one was.

alt text

As well as a significantly stranger occurrence of this happening on top of a double message

alt text

Any help figuring out what's wrong would be greatly appreciated!!! Also, here is the actor in question's blueprint alt text alt text

Product Version: UE 4.15
more ▼

asked Apr 16 '17 at 02:58 AM in Blueprint Scripting

avatar image

1 1 2 1

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

0 answers: sort voted first
Be the first one to answer this question
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