How to change player character from AI Enemy example?
Attack/Search/Patrol TPP A.I. (Version 4.7.0) by Peter L. Newton, is working, but when i change the player character of the actor class in BTW_botDetectEnemy, the AI no longer attacks.
1. Anyone know what is missing, how can you change the player character with keeping the AI functioning?
2. Also i tried to change the enemy, and even simple duplicating the enemy blueprint, changing the mesh, seems to break things, (the duplicate enemy AI no longer attacks).
asked Apr 02 '15 at 11:38 PM in Blueprint Scripting
In the BTS_botDetectEnemy blueprint, there is a GetAllActorsOfClass node and it's specifically "getting" the MyCharacter class objects. Since there's only 1, it just returns that. If you create a new player character blueprint and use that, then the GetAllActorsOfClass is going to return 0.
Just change the pulldown in that node to look for your player character class. There might be other Tasks, Decorators, and Services that you need to look in to make the same change. Hope that helps!
answered Apr 02 '15 at 11:58 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here