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 to disable AI?

I have a similar problem to this: https://forums.unrealengine.com/showthread.php?46592-Deactivate-destroy-AI-without-destroying-pawn

When my monster/ally dies, i set "Simulate Physics" and it simulates ragdoll. It's working, but its AI is still running and it moves around map, just invisible. How to deactivate AI of certain character? I've tried MyAIController ---> Deactivate, but it's not working.

Update: I've thought about setting my monster's custom group enum variable to "Dead" and in AI controller check every tick if controlledMonster.group != "Dead" before the rest of logic. But maybe there is a better way to just disable AI, without checking every frame?

Product Version: Not Selected
Tags:
more ▼

asked Dec 11 '14 at 03:03 PM in Blueprint Scripting

avatar image

Slavq
2k 157 153 210

avatar image Slavq Dec 15 '14 at 05:57 PM

bumpy bump

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

1 answer: sort voted first

Have you tried to un posses the pawn (simply the node "Un Posses") and then just destroy the Controller?

That should do what you're trying to do.

more ▼

answered Dec 15 '14 at 07:13 PM

avatar image

Erasio
5.9k 291 86 293

avatar image Slavq Dec 15 '14 at 07:23 PM

Un Posses did the trick, thanks :)

avatar image Nerdballer Games Jun 13 '19 at 02:47 AM

How do you destroy the controller?

avatar image huanghuihu Jun 27 '19 at 01:27 PM

the right way is using ' detach from controller pending Destory ' node. Otherwise your AI controller will not be destroy if you just unpossess it .

(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