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"

Cannot add movement input to AI pawn not possessed by player?

I've tried adding movement input to a pawn that has an AI controller and behavior tree via the pawn, AI controller, and behavior tree, but it doesn't seem to work anywhere. It will work when the player possesses it, but I don't want the player to possess it, this is for an AI enemy. Is there no method or setting that will allow it to accept an input vector without being possessed?

I want to be able to have the max speed/acceleration/deceleration advantages of the movement component (that I added via 'add floating pawn movement' and do have access to-it's not a matter of it not getting the component correctly). The 'move to' actions for AI will not accomplish what I need, and I don't want to have to manually set its location or use force/velocity to control its movement. It's incredibly frustrating for this action to seemingly be locked by the engine for no beneficial reason behind the requirement of being possessed by a player.

If you know of any way I can get the movement input necessary for my AI to be registered correctly I would be incredibly grateful as it's an integral part of my AI movement design.

Product Version: Not Selected
Tags:
more ▼

asked Mar 26 '15 at 04:12 AM in Blueprint Scripting

avatar image

SwiftIllusion
247 23 31 34

avatar image alperenakyuz Mar 26 '15 at 01:31 PM

Why didn't you create it as a character intead of a pawn?

avatar image SwiftIllusion Mar 26 '15 at 07:33 PM

Because the character controller is awful for anyone like myself wanting a custom actor setup (character's forced to have a capsule component>skeletal mesh, you can't delete those) and the character movement attached is even more restrictive than the floating pawn component I've added.

avatar image gmc Oct 01 '15 at 10:51 PM

Any news on this?

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

3 answers: sort voted first

Movement components cannot be added to pawns - whether that's an AI or otherwise. Try recreating a separate test version of your AI that's based on a Character instead of a Pawn and you'll get the control you desire.

more ▼

answered Mar 26 '15 at 06:22 AM

avatar image

1l2Hawk
690 36 35 74

avatar image SwiftIllusion Mar 26 '15 at 06:26 AM

Movement components can be added to pawns. My player is a pawn and I use a movement component I've added to that, and as detailed in the original post I can successfully get/read that the movement component on the AI is valid but it only acts as intended/receives input when it is possessed as a player.

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

You may need to disable/enable input on the pawn itself. Also, check the class defaults if "Block Input(s)" is enabled. If it is, uncheck it.

more ▼

answered Mar 26 '15 at 06:32 AM

avatar image

Maximus Jobs
90 6 9 15

avatar image SwiftIllusion Mar 26 '15 at 11:23 AM

Regrettably that wasn't it. It wasn't disabled in there (I had checked there first with my own tests), and I've also ticked 'force input' in the add input vector node so it would ignore that and add input anyway if it was working. The only thing that has allowed it to function is possessing the AI pawn, but of course that doesn't work when you want to possess the player and have many AI pawns/enemies.

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

try adding "add movement input" in your pawn and write a BTT for passing the values / calling those functions from your ai

more ▼

answered Oct 26 '15 at 07:54 AM

avatar image

makai
434 26 17 43

(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