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"

[Closed] Spawning an agent with AI controller

Well,since someone from Epics told me they have still been working on AI docs I wonder if I can get a help on this one:I start with a blank scene.I want on the level start to spawn a walking character(currently the human model supplied with the engine) and "empower" it with AI behaviors.I have found this thread:

https://answers.unrealengine.com/questions/23245/bp-spawn-node-does-not-set-correct-ai-controller-s.html

but haven't found some of the nodes depicted there.From my own trial/errors I got this: alt text

The problems is that after the AI spawn node gets executed the cast to AIController fails as I am getting triggered text on failure.Anyone can tell me what I am missing here?

Product Version: Not Selected
Tags:
aispawn.png (240.5 kB)
more ▼

asked Apr 05 '14 at 05:44 PM in Blueprint Scripting

avatar image

SasMaster
80 11 23 28

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

The question has been closed Apr 05 '14 at 05:59 PM by Alexander Paschall for the following reason:

Duplicate Question of https://answers.unrealengine.com/questions/21905/behavior-tree-possible-bug-in-cast-node.html


1 answer: sort voted first

That is a bug right now that Epic is aware of.

This is the workaround I am using.

alt text

spawnworkaround.jpg (195.5 kB)
more ▼

answered Apr 05 '14 at 05:56 PM

avatar image

mikepurvis
2.5k 101 65 260

avatar image SasMaster Apr 05 '14 at 06:19 PM

Do your actors inherit from AIController ?

avatar image mikepurvis Apr 05 '14 at 06:21 PM

The Controllers do. Casts on them to AIController work as well.

It's the Spawn Default Controller Node that has to be called. It's set in the Character, my pawns extend Character.

avatar image SasMaster Apr 05 '14 at 06:22 PM

I see no node called "Spawn Default Controller "

avatar image SasMaster Apr 05 '14 at 06:24 PM

I mean I created a blueprint based on AIController but even in this case I can't see a node of type "Spawn Default Controller"/ What version of the engine do you use?

avatar image mikepurvis Apr 05 '14 at 06:31 PM

It's there. Try unchecking context maybe. I'm on 4.0.2, through the launcher.

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

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question