I got ya. Well I wish you luck. It's a great template so far. Definitely hope it leads to some cool games.
Also, offtopic I have noticed a few instances of the AI getting stuck behind doors - just wanted to report that.
Viewing post in Horror Kit For Unreal Engine comments
Thanks for your support! I really hope this template will be used to create many cool games :D I'd love to see one of them if it comes out.
The AI isn't very polished yet. Getting stuck in doors is a bug with the navigation mesh and the AI's understanding of the game world. I'll try to fix it in the next update. However, this bug disappears if you use "Simple AI" instead of "Advanced AI."
Got ya. I'll have to play around with the different ones.
Hey quick question; is the gun supposed to scare the enemy away or hurt them or something? Hopefully I didn't break something, but I've been trying to shoot at the enemy only to see that the bullets don't even seem to be spawning. Wasn't sure if that was by design. Doesn't seem like the enemy reacts to getting shot either.
This wasn't intended, the AI should immediately activate attack states as soon as it senses damage from a player. This bug was fixed in version 1.1.0 Update 1.
The error is related to the pistol creating a "Line Trace" with the "Visibility" type instead of "Camera." You can change this by editing L1_Player (called BP_Player in newer versions) and going to Macros under "InteractionSystem." In the "LineTraceByChannel" node, select "Camera" instead of "Visibility" in the Trace Channel section. Then, the AI and other objects that sense damage will react to the shot.
Would you have any thoughts on how to implement a "run away" system for the enemy instead of a death system (or as an optional choice)? I tried changing the death code so the state enum gets set to 'fleeing' and pointOfInterest to a random spot. Then I modified the behavior tree to add a sequence checking if 'state' equals 'fleeing' and if 'killHiddenPlayer' is set; if so, it does a MoveTo pointOfInterest and waits. But it’s ignoring the state. Any ideas would be great! If you want, I can send my project for a small fee to fix it, and you’d have code to add a 'fleeing' state to your template for others. Just a thought. If you can’t help, no worries—thanks for all your help so far.
Unfortunately, I can't help you with AI, as I don't have much knowledge about it myself. I've previously accepted an AI-related project, but I spent too much time on it and couldn't complete it due to a lack of knowledge. Soon, even if I were to see how your AI works, I'd only be wasting your time. I really appreciate your suggestions, thank you, but unfortunately, I can't do anything with AI, as I don't yet have sufficient knowledge.