Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

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.

(+1)

Awesome! Thank you.

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.

Hmm, I don't even know, I can't really help since I don't really understand AI myself :(

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. 

(2 edits)

Sorry I meant in your horror template, not in my other project. Should've specified that. But it's all good. I'll keep at it on my own then. Thanks for your consideration.