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"

Random location origin location not changing

The wandering works but for one thing. The origin of the random spot node is not getting the new location of the actor. This is for a behavior tree task. alt text I am getting a reference to the controller and getting the location. How ever the location does not change as the actor moves. As you can see I am printing the origin and the random spot. alt text

The results are, the origin is in the same spot for every call. I indicated the three different actors in play. What I would like to happen (what I expected) is for the actor to get a random location from the new location. As it is the actor only wanders within the radius given.

It this happening because the controller does not get the new position as the actor in play moves? How can I fix this?

Product Version: UE 4.21
randomlocation.png (133.3 kB)
badorigin.png (68.7 kB)
more ▼

asked Dec 13 '18 at 07:14 AM in Blueprint Scripting

avatar image

36 4 6

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

Well, that was a easy fix. I got the controlled pawns location instead. Thought I tried that.

more ▼

answered Dec 13 '18 at 07:19 AM

avatar image

36 4 6

(comments are locked)
10|2000 characters needed characters left
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