Melee Enemy AI

 Author: Josiah Jones

Problem: 

    While working on enemy AI this week things were going pretty smoothly until it came to having to make melee enemy's without models and just shapes to use in place of models. As I was trying to make an enemy with a rectangle object to use as a weapon, the object would spawn in the right place with the AI but when the AI moved the rectangle wouldn't move from where it first spawned. This problem cause an issue when doing gameplay testing we couldn't test the melee AI to see if they worked and how it would effect are game.

Solution: 

    After researching I'm thinking the problem might be where or how I'm calling the blueprint function "Attach to Object" or the other "Attach to Component" I've tried both. I'm still looking for the solution to this problem but I'm current thinking that I can maybe try to make it one whole blueprint actor instead of seperate actors that im trying to attach together or I will just attach the weapon actor to the AI actor every tick so that it will update its position and look as if it is being held by the AI even while moving. Although this will be more work on computer and maybe slow things down, this will help gameplay for the user experience as every melee AI can actually fight back instead of there weapons just floating where they spawned at. 
 

Comments

Popular posts from this blog

Procedural Generation - Room NavMesh Spawning

Powerups and Wall clipping