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"

How can i make AI move to random location for infinity times

at first : "I'm new at Unreal Engine and game development"

I'm trying to make a simple AI ,that moves (walk) randomly in my little town like what in ("Strong Hold Crusader") or ("GTA"). my AI character moves once to a random location and then stop moving. can anyone make it and post a screen Capture for the BP (Blue Print). since i am using BP. thank you. sorry for bad English.

Product Version: Not Selected
Tags:
more ▼

asked May 10 '15 at 06:14 PM in Blueprint Scripting

avatar image

UPixe
3 2 3 3

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

1 answer: sort voted first

Well if you what your A.I. to walk completley random, then id create and Event and three variables.And then when the event starts id use a random number for each of the variables.The first and second variable will be the X and Z direction, and the third variable will be for how long the A.I will be walking for exapmle - for 3 seconds in direction (3, 5).Then when the time expires id just start the sequence again.You'll need to use a Brach statement if you want this to occur infinitly many times.Like when your timer gets to 0, you just start the Event again.

I gotta say first that im no pro on A.I. and im still new to this myself. I hope this helps.

more ▼

answered May 10 '15 at 06:35 PM

avatar image

StillEmpty
21 1 1

avatar image UPixe May 10 '15 at 07:20 PM

thank you " StillEmpty " i think i didn't understood your mechanism.
i tried to make a " for loop " with " Move to location " function. like this : can you help me make this loop work infinity times.

untitled.png (285.1 kB)
avatar image StillEmpty May 10 '15 at 08:38 PM

That is more like what i was talking about.If it was me id do it like that.Now this isnt the full BP but its the main idea.

alt text

avatar image StillEmpty May 10 '15 at 09:07 PM

And you can ignore the AIMoveTo, you can put whatever function you want there.

(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