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"

Fire Custom Event in AI_Controller from Player Controller

Alright, I am trying to build a game, where you control a pawn that can only walk between a grid of certain waypoints. (Boardgame style)

I have used the third person template to create a waypoint grid, an AI_Character and an AI_Controller. The functions "move to actor" (actor = the waypoint) work well when automated. Now I'd like to trigger them by pressing a key. E.g. walk to next waypoint. I do this, because I like the way the AI Navigation System works.

As I understand, the AI_Controller Blueprint doesn't accept keyboard inputs, so I would like to have the player controller accept the input (e.g. left arrow) and somehow pass it one to the AI controller to do the moving.

However, I have spend hours trying to get it to work without success. Whats the correct / best way to do this?

Any help is welcome! Thanks!

Product Version: UE 4.12
more ▼

asked Jul 04 '16 at 08:31 PM in Blueprint Scripting

avatar image

5 4 7 9

avatar image 4ndy Jul 04 '16 at 08:34 PM

In case my description is not clear enough, I'd like to do what "lluo" suggests in his answer to this question: https://answers.unrealengine.com/questions/374052/is-it-possible-to-use-both-ai-controller-and-playe.html

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

1 answer: sort voted first

If anyone is interested, I solved it like this:

I am using a player controller without an actual mesh (as a dummy) to control the ai characters including the player, which is an ai character. I am using "ai move to". Works like a charm.

more ▼

answered Aug 01 '16 at 08:50 AM

avatar image

5 4 7 9

(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